From c2b678929eec2f84bc46d336555fd596be7a4ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 24 Sep 2008 08:49:18 +0000 Subject: [PATCH] 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 --- effects/coverswitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/coverswitch.cpp b/effects/coverswitch.cpp index 3177e449b4..b43ffbda4d 100644 --- a/effects/coverswitch.cpp +++ b/effects/coverswitch.cpp @@ -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 )