summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-07-17 11:11:51 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-07-17 11:12:52 (GMT)
commit83670dbf53203757a28b10837b66f46515e1328d (patch)
tree1fab9fcbb3ce7d14195c36200367bdde230ad2f0
parentd2f9c8179173eeebc08b4b3207adb789efe4fb3a (diff)
downloadQt-83670dbf53203757a28b10837b66f46515e1328d.zip
Qt-83670dbf53203757a28b10837b66f46515e1328d.tar.gz
Qt-83670dbf53203757a28b10837b66f46515e1328d.tar.bz2
Animations: animations with 0 duration would never be auto-deleted
-rw-r--r--src/corelib/animation/qabstractanimation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/animation/qabstractanimation.cpp b/src/corelib/animation/qabstractanimation.cpp
index 75decf8..cf3e62d 100644
--- a/src/corelib/animation/qabstractanimation.cpp
+++ b/src/corelib/animation/qabstractanimation.cpp
@@ -620,8 +620,8 @@ void QAbstractAnimation::start(DeletionPolicy policy)
Q_D(QAbstractAnimation);
if (d->state == Running)
return;
- d->setState(Running);
d->deleteWhenStopped = policy;
+ d->setState(Running);
}
/*!