get rid of the old image if we are not animating
This commit is contained in:
parent
d177b0a31d
commit
0d03bf21c8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user