Only clear QLists when they are empty. Prevents crashes.
BUG: 182358 svn path=/trunk/KDE/kdebase/workspace/; revision=919007
This commit is contained in:
parent
e93f4306d9
commit
a6fb2688cd
1 changed files with 4 additions and 2 deletions
|
@ -201,7 +201,9 @@ void CoverSwitchEffect::paintScreen( int mask, QRegion region, ScreenPaintData&
|
||||||
rightIndex = 0;
|
rightIndex = 0;
|
||||||
|
|
||||||
EffectWindow* frontWindow = tempList[ index ];
|
EffectWindow* frontWindow = tempList[ index ];
|
||||||
|
if( !leftWindows.isEmpty() )
|
||||||
leftWindows.clear();
|
leftWindows.clear();
|
||||||
|
if( !rightWindows.isEmpty() )
|
||||||
rightWindows.clear();
|
rightWindows.clear();
|
||||||
|
|
||||||
bool evenWindows = ( tempList.count() % 2 == 0 ) ? true : false;
|
bool evenWindows = ( tempList.count() % 2 == 0 ) ? true : false;
|
||||||
|
|
Loading…
Reference in a new issue