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
remotes/origin/Plasma/5.0
Martin Gräßlin 17 years ago
parent f28d0ef21e
commit 2d0e2c3921
  1. 9
      effects/coverswitch/coverswitch.cpp

@ -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…
Cancel
Save