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
|
@ -1432,10 +1432,15 @@ void CoverSwitchEffect::windowInputMouseEvent( Window w, QEvent* e )
|
||||||
}
|
}
|
||||||
|
|
||||||
void CoverSwitchEffect::abort()
|
void CoverSwitchEffect::abort()
|
||||||
|
{
|
||||||
|
// 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->unrefTabBox();
|
||||||
effects->setActiveFullScreenEffect( 0 );
|
|
||||||
effects->destroyInputWindow( input );
|
effects->destroyInputWindow( input );
|
||||||
|
}
|
||||||
|
effects->setActiveFullScreenEffect( 0 );
|
||||||
mActivated = false;
|
mActivated = false;
|
||||||
stop = false;
|
stop = false;
|
||||||
stopRequested = false;
|
stopRequested = false;
|
||||||
|
|
Loading…
Reference in a new issue