aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4memberdata_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@jollamobile.com>2014-03-31 15:38:36 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-04 15:45:49 +0200
commitb02eeeee586abe343b8866385c1327ac009b3ef0 (patch)
tree46174b866e26ddeb2ad7ea8092ff988895850df1 /src/qml/jsruntime/qv4memberdata_p.h
parent82e4ee03918a8abef4479ae67f259bfae4e6b79c (diff)
Stop the animation driver when no animations are ticking.
When animations were registered we made a queued connection to 'startAnimations' to start the animation driver and also set the 'startAnimationPending' state to true. In 'stopTimer' we aborted if 'startAnimationPending' was true, presumeably to avoid stopping just to restart shortly after. However, if an animation is registered which triggers the invoke and then is immediately removed again, 'startAnimationPending' will be true with no pending animations at the time of 'stopTimer'. As a result, the driver would not stop and the system would continue animating and trying to render. Change-Id: Icbb01d7129c3a1bddef08a9f2a7aee957e3d2909 Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/qml/jsruntime/qv4memberdata_p.h')
0 files changed, 0 insertions, 0 deletions