From 88fac4ee64ccaecc1a3ea757715fe55c9c8fa965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 7 Feb 2008 11:21:41 +0000 Subject: [PATCH] Disable animation if there is only one window. BUG: 157292 svn path=/trunk/KDE/kdebase/workspace/; revision=771972 --- effects/flipswitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/flipswitch.cpp b/effects/flipswitch.cpp index 5da60a1416..3664323a6d 100644 --- a/effects/flipswitch.cpp +++ b/effects/flipswitch.cpp @@ -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());