summaryrefslogtreecommitdiffstats
path: root/src/corelib/animation/qabstractanimation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/animation/qabstractanimation.cpp')
-rw-r--r--src/corelib/animation/qabstractanimation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp
index 11113138a7..71eb9c9f9c 100644
--- a/src/corelib/animation/qabstractanimation.cpp
+++ b/src/corelib/animation/qabstractanimation.cpp
@@ -269,8 +269,7 @@ void QUnifiedTimer::restartAnimationTimer()
if (pauseTimer.isActive())
pauseTimer.stop();
driver->start();
- } else if (runningLeafAnimations == 0)
- driver->stop();
+ }
}
void QUnifiedTimer::setTimingInterval(int interval)
@@ -303,6 +302,7 @@ void QUnifiedTimer::stopTimer()
{
stopTimerPending = false;
if (animations.isEmpty()) {
+ driver->stop();
pauseTimer.stop();
// invalidate the start reference time
time.invalidate();