aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/declarative/qml/v8/qv8qobjectwrapper.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/v8/qv8qobjectwrapper.cpp b/src/declarative/qml/v8/qv8qobjectwrapper.cpp
index d93e1b8bca..6a9f583b0f 100644
--- a/src/declarative/qml/v8/qv8qobjectwrapper.cpp
+++ b/src/declarative/qml/v8/qv8qobjectwrapper.cpp
@@ -1352,6 +1352,7 @@ v8::Handle<v8::Value> QV8QObjectWrapper::Disconnect(const v8::Arguments &args)
// Match!
if (connections.connectionsInUse) {
connection.needsDestroy = true;
+ connections.connectionsNeedClean = true;
} else {
connection.dispose();
connections.removeAt(ii);
@@ -1371,6 +1372,7 @@ v8::Handle<v8::Value> QV8QObjectWrapper::Disconnect(const v8::Arguments &args)
// Match!
if (connections.connectionsInUse) {
connection.needsDestroy = true;
+ connections.connectionsNeedClean = true;
} else {
connection.dispose();
connections.removeAt(ii);