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:
Martin Gräßlin 2009-09-16 09:57:17 +00:00
parent f28d0ef21e
commit 2d0e2c3921

View file

@ -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;