aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r--src/qml/jsruntime/qv4qobjectwrapper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp
index 1cfd2d88ec..dd58e0609b 100644
--- a/src/qml/jsruntime/qv4qobjectwrapper.cpp
+++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp
@@ -1315,6 +1315,11 @@ static const QQmlPropertyData * RelatedMethod(QObject *object,
methodOffset -= QMetaObject_methods(mo);
}
+ // If we've been called before with the same override index, then
+ // we can't go any further...
+ if (&dummy == current && dummy.coreIndex == current->overrideIndex)
+ return 0;
+
QMetaMethod method = mo->method(current->overrideIndex);
dummy.load(method);