Avoid crash when a QML signal is connected to a non-void slot
authorJ-P Nurmi <jpnurmi@digia.com>
Mon, 21 Oct 2013 12:43:19 +0000 (14:43 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 22 Oct 2013 11:51:33 +0000 (13:51 +0200)
commit4f1ed0948b99af617fa978f0f1b72e48a9fe774f
treeca86faa0d50098b4b527519af691c38654fbe77d
parentbf245797a7b14d8c40cd9f2a12620690ef20094e
Avoid crash when a QML signal is connected to a non-void slot

Don't pass a QVariant pointer for the return value when we're
not interested in it and the return type might not even be a
QVariant (that would be only true for QML methods).

Task-number: QTBUG-32801
Change-Id: I8f14e40d8f94caef7e3d086b776735f0484dbf0e
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4qobjectwrapper.cpp
tests/auto/qml/qqmlecmascript/data/qtbug_32801.qml [new file with mode: 0644]
tests/auto/qml/qqmlecmascript/testtypes.h
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp