aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-11-22 13:43:10 +0000
committerQt by Nokia <qt-info@nokia.com>2011-11-22 14:45:14 +0100
commit0ce1d0c0e41dab04b2267fed1fe20b70884765a4 (patch)
tree7b1567259fa8853c93d4ab88c8d38964434b6304 /src/declarative
parent8c7da024f0b8743c7e2ffd45e918bdc3e79d200a (diff)
Don't disconnect mid binding evaluation
Task-number: QTBUG-22816 Change-Id: I7a958203945a051322228b6fade9e1d49d5f4c4a Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/qml/v4/qv4bindings.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/v4/qv4bindings.cpp b/src/declarative/qml/v4/qv4bindings.cpp
index b398ac57b2..1f9342723e 100644
--- a/src/declarative/qml/v4/qv4bindings.cpp
+++ b/src/declarative/qml/v4/qv4bindings.cpp
@@ -342,6 +342,8 @@ void QV4Bindings::subscribeId(QDeclarativeContextData *p, int idIndex, int subIn
void QV4Bindings::subscribe(QObject *o, int notifyIndex, int subIndex)
{
Subscription *sub = (subscriptions + subIndex);
+ if (sub->isConnected(o, notifyIndex))
+ return;
sub->bindings = this;
sub->method = subIndex;
if (o)