From 8ad5ce3b7045781d5c4aad3fd13cf9d67204a627 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 29 Jun 2020 16:40:16 +0000 Subject: [PATCH] use exclusive conditionals in QUnifiedTimer::timerEvent() Signed-off-by: Ivailo Monev --- src/gui/animation/qabstractanimation.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/animation/qabstractanimation.cpp b/src/gui/animation/qabstractanimation.cpp index 3c8431ffd..564fef1a0 100644 --- a/src/gui/animation/qabstractanimation.cpp +++ b/src/gui/animation/qabstractanimation.cpp @@ -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(); -- 2.11.0