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

@ -1433,9 +1433,14 @@ void CoverSwitchEffect::windowInputMouseEvent( Window w, QEvent* e )
void CoverSwitchEffect::abort() 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->setActiveFullScreenEffect( 0 );
effects->destroyInputWindow( input );
mActivated = false; mActivated = false;
stop = false; stop = false;
stopRequested = false; stopRequested = false;