aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickitemsmodule.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@crimson.no>2017-01-11 23:29:23 +0100
committerRobin Burchell <robin.burchell@crimson.no>2017-01-12 19:19:26 +0000
commit93df3e3a3118080dcd6d9416d1622b88d99c4b8d (patch)
tree582046f7f35eb3050c9615bd4e15760e3027e6c5 /src/quick/items/qquickitemsmodule.cpp
parentc2e46b9d9140903f5b563f8835c11d4491452405 (diff)
QSGThreadedRenderLoop: Correctly stop the animation timer ...
... when destroying the last window while it is still visible. For the case of windowDestroyed(), the QQuickWindow can still be isVisible true and isExposed true. Given these circumstances, we would not stop the timer (assuming that we needed to keep it running), but this is actually wrong when we are evaluating a timer change depending on the window being destroyed. By calling startOrStopAnimationTimer again, after the window has been removed from m_windows, we will successfully stop the timer -- the only cost being an unnecessary polish event being sent from the first call (which will be ignored). Task-number: QTBUG-58091 Change-Id: I043ce5d88eafee15019e1c8d41c06d531d1da059 Reviewed-by: Gunnar Sletta <gunnar@crimson.no>
Diffstat (limited to 'src/quick/items/qquickitemsmodule.cpp')
0 files changed, 0 insertions, 0 deletions