diff options
author | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-05-15 21:01:06 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-19 11:15:08 +0200 |
commit | 851ae1a77dc207ec11b8ed3f0786bfe1c1905e4c (patch) | |
tree | 6576f581a94851366e4481ea6994b610636f5fe0 /tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp | |
parent | 8f6254a88e4c634203df779aa385d9955e91b56f (diff) |
Fix crash with running animators on re-shown windows.
The non-threaded render loops would clean up the nodes for a window
when it was hidden, but the animators kept running and had a reference
to the deleted nodes. This was not a problem for the threaded render
loop as it would wipe the animator controller as well which would
clean the jobs.
Fix it by triggering a reset of all nodes in the animators when the
window is told to clean up. If an animator is ticked when it doesn't
have a node, it will simply do nothing. When the window is made visible
again, we call initialize on all animators to find the new node.
Task-number: QTBUG-37995
Change-Id: Ie5609d95db29f4b2b30ca5bf641dce901e528389
Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp')
0 files changed, 0 insertions, 0 deletions