aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/util/qquickanimatorcontroller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/util/qquickanimatorcontroller.cpp')
-rw-r--r--src/quick/util/qquickanimatorcontroller.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/util/qquickanimatorcontroller.cpp b/src/quick/util/qquickanimatorcontroller.cpp
index ed3380b9ca..2f96c511c0 100644
--- a/src/quick/util/qquickanimatorcontroller.cpp
+++ b/src/quick/util/qquickanimatorcontroller.cpp
@@ -73,10 +73,10 @@ static void qquickanimator_invalidate_jobs(QAbstractAnimationJob *job)
void QQuickAnimatorController::windowNodesDestroyed()
{
- m_nodesAreInvalid = true;
-
- for (const QSharedPointer<QAbstractAnimationJob> &toStop : qAsConst(m_rootsPendingStop))
+ for (const QSharedPointer<QAbstractAnimationJob> &toStop : qAsConst(m_rootsPendingStop)) {
+ qquickanimator_invalidate_jobs(toStop.data());
toStop->stop();
+ }
m_rootsPendingStop.clear();
// Clear animation roots and iterate over a temporary to avoid that job->stop()