summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-08-20 12:32:31 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-08-20 12:35:50 (GMT)
commit9842c3f07c0ace5a13aa531a950f316427ed4bb4 (patch)
treee9a3be4d62cf95e7561b18abe94897401e8791d5 /src/corelib/kernel
parent18eccf4189f4a093fb7d2418a1f3518da971aefa (diff)
downloadQt-9842c3f07c0ace5a13aa531a950f316427ed4bb4.zip
Qt-9842c3f07c0ace5a13aa531a950f316427ed4bb4.tar.gz
Qt-9842c3f07c0ace5a13aa531a950f316427ed4bb4.tar.bz2
Fix potential Infinite recurstion.
Was introduced by commit 919b723 This function is not even supposed to be called anymore by anything
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r--src/corelib/kernel/qobject.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/kernel/qobject.cpp b/src/corelib/kernel/qobject.cpp
index 022ae13..285afed 100644
--- a/src/corelib/kernel/qobject.cpp
+++ b/src/corelib/kernel/qobject.cpp
@@ -3219,12 +3219,11 @@ static void blocking_activate(QObject *sender, int signal, QObjectPrivate::Conne
/*!\internal
\obsolete.
- Used to be called from QMetaObject::activate(QObject *, QMetaObject *, int, int, void **)
+ Used to be called from QMetaObject::activate(QObject *, QMetaObject *, int, int, void **) before Qt 4.6
*/
void QMetaObject::activate(QObject *sender, int from_signal_index, int to_signal_index, void **argv)
{
- int offset = sender->metaObject()->methodOffset();
- activate(sender, from_signal_index - offset, to_signal_index - offset, argv);
+ activate(sender, from_signal_index, argv);
}
/*!\internal