From c1b759bd10fa6a10d08d9cff8d5d312780d95e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Borgese?= Date: Fri, 18 Apr 2008 13:06:29 +0000 Subject: [PATCH] Fix bad empty test. svn path=/trunk/KDE/kdebase/workspace/; revision=798510 --- effects/wobblywindows.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/wobblywindows.cpp b/effects/wobblywindows.cpp index d7110cfeee..5196b20635 100644 --- a/effects/wobblywindows.cpp +++ b/effects/wobblywindows.cpp @@ -117,7 +117,7 @@ WobblyWindowsEffect::WobblyWindowsEffect() WobblyWindowsEffect::~WobblyWindowsEffect() { - if (windows.empty()) + if (!windows.empty()) { // we should be empty at this point... // emit a warning and clean the list. @@ -129,6 +129,7 @@ WobblyWindowsEffect::~WobblyWindowsEffect() } } } + void WobblyWindowsEffect::setVelocityThreshold(qreal m_minVelocity) { this->m_minVelocity = m_minVelocity;