Use the right callback in QObject::disconnect()
Change-Id: Idf2f725dd859aa5c960e5889678cac0e139e44b0 Reviewed-on: http://codereview.qt-project.org/5475 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
978671c475
commit
d5ad900c77
@ -2826,7 +2826,7 @@ bool QObject::disconnect(const QObject *sender, const QMetaMethod &signal,
|
||||
}
|
||||
const void *cbdata[] = { sender, signal.mobj ? signalSignature.constData() : 0,
|
||||
receiver, method.mobj ? methodSignature.constData() : 0 };
|
||||
if (QInternal::activateCallbacks(QInternal::ConnectCallback, (void **) cbdata))
|
||||
if (QInternal::activateCallbacks(QInternal::DisconnectCallback, (void **) cbdata))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user