aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-07-29 13:53:47 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-07-29 14:13:52 -0300
commit1fe7baf787381775e845923872d78096153ab5e3 (patch)
tree82bfbec5413e06f6734d412420b1b28473d096d2
parentf4668398e2c536f4ff191991af4fd992b044d196 (diff)
Emit connectNotify with real signal name.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--PySide/QtCore/glue/qobject_connect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/PySide/QtCore/glue/qobject_connect.cpp b/PySide/QtCore/glue/qobject_connect.cpp
index 535dd10da..8578bffc2 100644
--- a/PySide/QtCore/glue/qobject_connect.cpp
+++ b/PySide/QtCore/glue/qobject_connect.cpp
@@ -76,11 +76,11 @@ static bool qobjectConnectCallback(QObject* source, const char* signal, PyObject
}
if (QMetaObject::connect(source, signalIndex, receiver, slotIndex, type)) {
#ifndef AVOID_PROTECTED_HACK
- source->connectNotify(signal);
+ source->connectNotify(signal - 1);
#else
// Need to cast to QObjectWrapper* and call the public version of
// connectNotify when avoiding the protected hack.
- reinterpret_cast<QObjectWrapper*>(source)->connectNotify(signal);
+ reinterpret_cast<QObjectWrapper*>(source)->connectNotify(signal - 1);
#endif
if (usingGlobalReceiver)
signalManager.globalReceiverConnectNotify(source, slotIndex);