diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-06 08:48:05 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-06 08:49:03 (GMT) |
commit | dde02a1b8c61c344c20a92a81d25d4c9b522d349 (patch) | |
tree | a8e9087920fac79ed9905a03048702cf710d7e5a /src/corelib/animation | |
parent | 491943409043d7e7fb6e0a4df6fd931867fda1dc (diff) | |
download | Qt-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.cpp | 2 |
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); } |