Skip to content

Commit

Permalink
Make sure we stop animators if they are yet to be started.
Browse files Browse the repository at this point in the history
Change-Id: I311e66c64a79581739f80e124fd58da2aaded549
Task-number: QTBUG-45220
Reviewed-by: Michael Brasser <michael.brasser@live.com>
  • Loading branch information
sletta committed Apr 29, 2015
1 parent 27dc5c4 commit 2638b41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/quick/util/qquickanimatorjob.cpp
Expand Up @@ -131,9 +131,8 @@ void QQuickAnimatorProxyJob::updateState(QAbstractAnimationJob::State newState,
m_controller->startJob(this, m_job);
} else if (newState == Stopped) {
syncBackCurrentValues();
if (m_internalState == State_Starting)
m_internalState = State_Stopped;
else if (m_controller) {
m_internalState = State_Stopped;
if (m_controller) {
m_controller->stopJob(this, m_job);
}
}
Expand Down

0 comments on commit 2638b41

Please sign in to comment.