summaryrefslogtreecommitdiffstats
path: root/src/animation
diff options
context:
space:
mode:
authorJuan Jose Casafranca <juan.casafranca@kdab.com>2018-07-09 16:02:11 +0200
committerPaul Lemire <paul.lemire@kdab.com>2019-03-28 09:28:16 +0000
commite84d8d2a81eb81f9b1ea9f40d4da36d09a97b246 (patch)
treec70705841b9df82042a3430ab02da330ce982a12 /src/animation
parentb79e4a8b2a8783fc9eeaaa36e710adf2fb8c7879 (diff)
Dont play animations that are disabled
Change-Id: I5293ff8d16c511de79c4583783b238154af32f61 Task-number: QTBUG-69373 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/animation')
-rw-r--r--src/animation/backend/findrunningclipanimatorsjob.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/animation/backend/findrunningclipanimatorsjob.cpp b/src/animation/backend/findrunningclipanimatorsjob.cpp
index b55c84e77..fde3f7db8 100644
--- a/src/animation/backend/findrunningclipanimatorsjob.cpp
+++ b/src/animation/backend/findrunningclipanimatorsjob.cpp
@@ -65,6 +65,8 @@ void FindRunningClipAnimatorsJob::run()
for (const auto &clipAnimatorHandle : qAsConst(m_clipAnimatorHandles)) {
ClipAnimator *clipAnimator = clipAnimatorManager->data(clipAnimatorHandle);
Q_ASSERT(clipAnimator);
+ if (!clipAnimator->isEnabled())
+ continue;
const bool canRun = clipAnimator->canRun();
const bool running = clipAnimator->isRunning();