Disable animation if there is only one window.

BUG: 157292

svn path=/trunk/KDE/kdebase/workspace/; revision=771972
This commit is contained in:
Martin Gräßlin 2008-02-07 11:21:41 +00:00
parent cbb36dc0ba
commit 88fac4ee64

View file

@ -444,7 +444,7 @@ void FlipSwitchEffect::tabBoxUpdated()
{
if( mActivated )
{
if( mAnimation )
if( mAnimation && effects->currentTabBoxWindowList().count() > 1 )
{
// determine the switch direction
int index = effects->currentTabBoxWindowList().indexOf(effects->currentTabBoxWindow());