diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2014-01-06 15:20:54 +0100 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2014-01-06 15:47:15 +0100 |
commit | 1178a048fc48f1679e23344962400556b516261a (patch) | |
tree | 8077013a945f9b1df228a806b018edaa2a32b9b2 /src/plugins/cpptools/cppcodegen_test.cpp | |
parent | 86a91be426f56784914f7596e80da8754972b77a (diff) | |
download | qt-creator-1178a048fc48f1679e23344962400556b516261a.tar.gz |
QmlDesigner.ItemLibrary: Start drag using QTimer::singleShot()
A drag might change the imports which invalidates the model exposed
to qml. Since QObjects are deleted when the model is reseted this did lead to
a crash in the qml engine, because the object emitting the signal was deleted.
To avoid this we call startDragAndDrop() asynchronously using QTimer::singleShot().
Now the object is always deleted after the signal is emitted not during the emit.
Task-number: QTCREATORBUG-11139
Change-Id: I92e7f9dfff33697b9ff0da148dc9da629723ab7e
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Diffstat (limited to 'src/plugins/cpptools/cppcodegen_test.cpp')
0 files changed, 0 insertions, 0 deletions