summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cpptoolsplugin.cpp
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@digia.com>2014-01-06 15:20:54 +0100
committerThomas Hartmann <Thomas.Hartmann@digia.com>2014-01-06 15:47:15 +0100
commit1178a048fc48f1679e23344962400556b516261a (patch)
tree8077013a945f9b1df228a806b018edaa2a32b9b2 /src/plugins/cpptools/cpptoolsplugin.cpp
parent86a91be426f56784914f7596e80da8754972b77a (diff)
downloadqt-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/cpptoolsplugin.cpp')
0 files changed, 0 insertions, 0 deletions