summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-02-25 05:25:41 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2010-02-25 05:52:49 (GMT)
commit9616583e19bb642da8f2d2f4305ddef8ee16feb3 (patch)
tree36b1e057a09c6a8342850f1cce47536f813ca42b /src/declarative
parentd022acd47350f61d3959b076d7bc92df86015b16 (diff)
downloadQt-9616583e19bb642da8f2d2f4305ddef8ee16feb3.zip
Qt-9616583e19bb642da8f2d2f4305ddef8ee16feb3.tar.gz
Qt-9616583e19bb642da8f2d2f4305ddef8ee16feb3.tar.bz2
Fix QDeclarativePropertyAnimation to avoid property writes while stopped
Avoid changing the value of the property, while the animation is stopped. This was triggered while changing the duration of the animation, while it was stopped. Task-number: QTBUG-8507 Reviewed-by: Michael Brasser
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/util/qdeclarativeanimation_p_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativeanimation_p_p.h b/src/declarative/util/qdeclarativeanimation_p_p.h
index bb81fb3..65c9807 100644
--- a/src/declarative/util/qdeclarativeanimation_p_p.h
+++ b/src/declarative/util/qdeclarativeanimation_p_p.h
@@ -165,6 +165,9 @@ public:
protected:
virtual void updateCurrentValue(const QVariant &value)
{
+ if (state() == QAbstractAnimation::Stopped)
+ return;
+
if (animValue)
animValue->setValue(value.toReal());
}