Fix possible crash when using alt+tab again while coverswitch is closing. Backporting patch from rev. 864225. Fixes bug 170860.

svn path=/branches/KDE/4.1/kdebase/workspace/; revision=864228
This commit is contained in:
Martin Gräßlin 2008-09-24 08:49:18 +00:00
parent 5a0a633104
commit c2b678929e

View file

@ -568,11 +568,11 @@ void CoverSwitchEffect::tabBoxAdded( int mode )
// only for windows mode
if( mode == TabBoxWindowsMode && effects->currentTabBoxWindowList().count() > 0 )
{
input = effects->createFullScreenInputWindow( this, Qt::BlankCursor );
if( !stop && !stopRequested )
{
effects->refTabBox();
effects->setActiveFullScreenEffect( this );
input = effects->createFullScreenInputWindow( this, Qt::BlankCursor );
selectedWindow = effects->currentTabBoxWindowList().indexOf(effects->currentTabBoxWindow());
mActivated = true;
if( animateStart )