summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-07-16 04:32:34 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-07-16 04:32:34 (GMT)
commit700f70761782fc30eb550f0036712123232af2dd (patch)
tree16d5a27b36a76ce4e64aef069ece1df9e6e6bd5a /src
parentbefae051c1f80d66f459f375279f36047017c194 (diff)
downloadQt-700f70761782fc30eb550f0036712123232af2dd.zip
Qt-700f70761782fc30eb550f0036712123232af2dd.tar.gz
Qt-700f70761782fc30eb550f0036712123232af2dd.tar.bz2
Fix a bug in QmlFollow
Using a follow by turning it on and off at times was not working right.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/util/qmlfollow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/util/qmlfollow.cpp b/src/declarative/util/qmlfollow.cpp
index b8e6685..1e4468c 100644
--- a/src/declarative/util/qmlfollow.cpp
+++ b/src/declarative/util/qmlfollow.cpp
@@ -188,6 +188,7 @@ void QmlFollowPrivate::start()
property.write(currentValue);
} else if (sourceValue != currentValue && clock.state() != QAbstractAnimation::Running) {
lastTime = 0;
+ currentValue = property.read().toDouble();
clock.start(); // infinity??
}
}