get rid of the old image if we are not animating

This commit is contained in:
Marco Martin 2012-11-27 17:54:05 +01:00
parent d177b0a31d
commit 0d03bf21c8

View File

@ -305,6 +305,7 @@ void IconItem::loadPixmap()
//if an animation was already running, immediate transition, to not overload
if (m_animation->state() == QAbstractAnimation::Running) {
m_animation->stop();
m_iconPixmaps.pop_front();
} else if (m_iconPixmaps.count() > 1) {
m_animation->setStartValue((qreal)0);
m_animation->setEndValue((qreal)1);