From b1c6e095404ccb7788e6b12fff692c71f4900815 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Fri, 28 Sep 2012 11:28:23 +0200 Subject: Fix QObject::receivers() within connectNotify() The receiver count needs to be correct in connectNotify() to be compatible with ordinary connections. Fix this and add test. Change-Id: Icff0486dac49876b8c5d8836a85cff9284368a52 Reviewed-by: Alan Alpert <416365416c@gmail.com> --- tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/auto/qml/qqmlnotifier') diff --git a/tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp b/tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp index fdfa211126..ae37b6a4fb 100644 --- a/tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp +++ b/tests/auto/qml/qqmlnotifier/tst_qqmlnotifier.cpp @@ -120,6 +120,7 @@ protected: if (signal.name() == "scriptBindingPropChanged") scriptBindingPropConnections++; if (signal.name() == "boundSignal") boundSignalConnections++; if (signal.name() == "unusedSignal") unusedSignalConnections++; + verifyReceiverCount(); //qDebug() << Q_FUNC_INFO << this << signal.name(); } @@ -133,6 +134,7 @@ protected: if (signal.name() == "scriptBindingPropChanged") scriptBindingPropConnections--; if (signal.name() == "boundSignal") boundSignalConnections--; if (signal.name() == "unusedSignal") unusedSignalConnections--; + verifyReceiverCount(); //qDebug() << Q_FUNC_INFO << this << signal.methodSignature(); } -- cgit v1.2.3