Don't double emit threaded signals
authorAaron Kennedy <aaron.kennedy@nokia.com>
Wed, 6 Jun 2012 13:12:01 +0000 (14:12 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 7 Jun 2012 10:20:32 +0000 (12:20 +0200)
commite58931462e3c32434d070058b87e5d9152ed004e
tree7ca61717769ba0b2a7c92a4f26136a8613054b70
parentc7ad506a4e46d3b3a2d3f6235e5c7df69b027311
Don't double emit threaded signals

As the metacall event was posted to the object emitting the signal, it
caused the signal to be *reemitted* on the object thread.  If both QML
and Qt connections were present, the Qt ones were run twice.

Change-Id: I4bc1402ab0a43762ff6fef173ecc77fc20508bad
Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
src/qml/qml/qqmlengine.cpp
src/qml/qml/qqmlnotifier_p.h
tests/auto/qml/qqmlecmascript/data/threadSignal.2.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp