From 700f70761782fc30eb550f0036712123232af2dd Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Thu, 16 Jul 2009 14:32:34 +1000 Subject: Fix a bug in QmlFollow Using a follow by turning it on and off at times was not working right. --- src/declarative/util/qmlfollow.cpp | 1 + 1 file changed, 1 insertion(+) 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?? } } -- cgit v0.12