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:
Olivier Goffart 2011-09-23 20:42:50 +02:00 committed by Qt by Nokia
parent 978671c475
commit d5ad900c77

View File

@ -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;
}