aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/animations/qparallelanimationgroupjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/animations/qparallelanimationgroupjob.cpp')
-rw-r--r--src/qml/animations/qparallelanimationgroupjob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/animations/qparallelanimationgroupjob.cpp b/src/qml/animations/qparallelanimationgroupjob.cpp
index 0472c959f4..9d22e55f04 100644
--- a/src/qml/animations/qparallelanimationgroupjob.cpp
+++ b/src/qml/animations/qparallelanimationgroupjob.cpp
@@ -216,8 +216,8 @@ void QParallelAnimationGroupJob::uncontrolledAnimationFinished(QAbstractAnimatio
return;
int maxDuration = 0;
- for (QAbstractAnimationJob *animation = firstChild(); animation; animation = animation->nextSibling())
- maxDuration = qMax(maxDuration, animation->totalDuration());
+ for (QAbstractAnimationJob *job = firstChild(); job; job = job->nextSibling())
+ maxDuration = qMax(maxDuration, job->totalDuration());
if (m_currentTime >= maxDuration)
stop();