summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-11-06 08:48:05 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-11-06 08:49:03 (GMT)
commitdde02a1b8c61c344c20a92a81d25d4c9b522d349 (patch)
treea8e9087920fac79ed9905a03048702cf710d7e5a /src/corelib/animation
parent491943409043d7e7fb6e0a4df6fd931867fda1dc (diff)
downloadQt-dde02a1b8c61c344c20a92a81d25d4c9b522d349.zip
Qt-dde02a1b8c61c344c20a92a81d25d4c9b522d349.tar.gz
Qt-dde02a1b8c61c344c20a92a81d25d4c9b522d349.tar.bz2
Animations should only be registered if their new state is running
Diffstat (limited to 'src/corelib/animation')
-rw-r--r--src/corelib/animation/qabstractanimation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp
index edc1503..3b98152 100644
--- a/src/corelib/animation/qabstractanimation.cpp
+++ b/src/corelib/animation/qabstractanimation.cpp
@@ -361,7 +361,7 @@ void QAbstractAnimationPrivate::setState(QAbstractAnimation::State newState)
QUnifiedTimer::instance()->ensureTimerUpdate();
//the animation, is not running any more
QUnifiedTimer::instance()->unregisterAnimation(q);
- } else {
+ } else if (newState == QAbstractAnimation::Running) {
QUnifiedTimer::instance()->registerAnimation(q, isTopLevel);
}