Adding a safety check in coverswitch so that the input window is not destroyed twice.
BUG: 207554 svn path=/trunk/KDE/kdebase/workspace/; revision=1024275
This commit is contained in:
parent
f28d0ef21e
commit
2d0e2c3921
1 changed files with 7 additions and 2 deletions
|
@ -1433,9 +1433,14 @@ void CoverSwitchEffect::windowInputMouseEvent( Window w, QEvent* e )
|
|||
|
||||
void CoverSwitchEffect::abort()
|
||||
{
|
||||
effects->unrefTabBox();
|
||||
// it's possible that abort is called after tabbox has been closed
|
||||
// in this case the cleanup is already done (see bug 207554)
|
||||
if( mActivated )
|
||||
{
|
||||
effects->unrefTabBox();
|
||||
effects->destroyInputWindow( input );
|
||||
}
|
||||
effects->setActiveFullScreenEffect( 0 );
|
||||
effects->destroyInputWindow( input );
|
||||
mActivated = false;
|
||||
stop = false;
|
||||
stopRequested = false;
|
||||
|
|
Loading…
Reference in a new issue