Emit connectNotify with real signal name.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
f4668398e2
commit
1fe7baf787
1 changed files with 2 additions and 2 deletions
|
|
@ -76,11 +76,11 @@ static bool qobjectConnectCallback(QObject* source, const char* signal, PyObject
|
||||||
}
|
}
|
||||||
if (QMetaObject::connect(source, signalIndex, receiver, slotIndex, type)) {
|
if (QMetaObject::connect(source, signalIndex, receiver, slotIndex, type)) {
|
||||||
#ifndef AVOID_PROTECTED_HACK
|
#ifndef AVOID_PROTECTED_HACK
|
||||||
source->connectNotify(signal);
|
source->connectNotify(signal - 1);
|
||||||
#else
|
#else
|
||||||
// Need to cast to QObjectWrapper* and call the public version of
|
// Need to cast to QObjectWrapper* and call the public version of
|
||||||
// connectNotify when avoiding the protected hack.
|
// connectNotify when avoiding the protected hack.
|
||||||
reinterpret_cast<QObjectWrapper*>(source)->connectNotify(signal);
|
reinterpret_cast<QObjectWrapper*>(source)->connectNotify(signal - 1);
|
||||||
#endif
|
#endif
|
||||||
if (usingGlobalReceiver)
|
if (usingGlobalReceiver)
|
||||||
signalManager.globalReceiverConnectNotify(source, slotIndex);
|
signalManager.globalReceiverConnectNotify(source, slotIndex);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue