diff options
author | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-25 05:25:41 (GMT) |
---|---|---|
committer | Leonardo Sobral Cunha <leo.cunha@nokia.com> | 2010-02-25 05:52:49 (GMT) |
commit | 9616583e19bb642da8f2d2f4305ddef8ee16feb3 (patch) | |
tree | 36b1e057a09c6a8342850f1cce47536f813ca42b /src/declarative | |
parent | d022acd47350f61d3959b076d7bc92df86015b16 (diff) | |
download | Qt-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.h | 3 |
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()); } |