Fix Qt::QueuedConnection when signal has a return value
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 29 Nov 2011 00:44:18 +0000 (01:44 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 30 Nov 2011 00:04:12 +0000 (01:04 +0100)
commit55b974faa158a36cb0ab39fd9cfd11b2f6c186ba
treefde69f585180dc7ef8b70563abba2a10c9620eb5
parentfa7f690178d2f74db168a23064a688fe421cb1e6
Fix Qt::QueuedConnection when signal has a return value

For queued connections, the args[0] is set to null as it make no sens to
forward the return value to the signal.
So we need to check in the operator, that the pointer is not null.
(container.data is args[0])

Change-Id: I80bde66f1ec19de0f4962c80e5b2797d2819075c
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
src/corelib/kernel/qobject_impl.h
tests/auto/corelib/kernel/qobject/tst_qobject.cpp