OSDN Git Service

use exclusive conditionals in QUnifiedTimer::timerEvent()
authorIvailo Monev <xakepa10@laimg.moc>
Mon, 29 Jun 2020 16:40:16 +0000 (16:40 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Mon, 29 Jun 2020 16:40:16 +0000 (16:40 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/animation/qabstractanimation.cpp

index 3c8431f..564fef1 100644 (file)
@@ -249,9 +249,7 @@ void QUnifiedTimer::timerEvent(QTimerEvent *event)
                 time.start();
             }
         }
-    }
-
-    if (event->timerId() == animationTimer.timerId()) {
+    } else if (event->timerId() == animationTimer.timerId()) {
         // update current time on all top level animations
         updateAnimationsTime();
         restartAnimationTimer();