diff options
| author | Frank Reininghaus <[email protected]> | 2014-03-11 09:15:15 +0100 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2014-03-11 09:15:15 +0100 |
| commit | 47de53916904d04464d135c0efb4fd365d8368c6 (patch) | |
| tree | 408f018f920620a868c2ea40bf170f01d34e8129 /src/kitemviews/private | |
| parent | 4e574ffae5b39962210c4d822762ad9242f51437 (diff) | |
| parent | 773d505493773575df933babbf46eacc8f85316f (diff) | |
Merge branch 'KDE/4.13'
Diffstat (limited to 'src/kitemviews/private')
| -rw-r--r-- | src/kitemviews/private/kitemlistviewanimation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kitemviews/private/kitemlistviewanimation.cpp b/src/kitemviews/private/kitemlistviewanimation.cpp index e347c5bb1..5a00c8c3a 100644 --- a/src/kitemviews/private/kitemlistviewanimation.cpp +++ b/src/kitemviews/private/kitemlistviewanimation.cpp @@ -225,13 +225,13 @@ void KItemListViewAnimation::slotFinished() { QPropertyAnimation* finishedAnim = qobject_cast<QPropertyAnimation*>(sender()); for (int type = 0; type < AnimationTypeCount; ++type) { - QHashIterator<QGraphicsWidget*, QPropertyAnimation*> it(m_animation[type]); + QMutableHashIterator<QGraphicsWidget*, QPropertyAnimation*> it(m_animation[type]); while (it.hasNext()) { it.next(); QPropertyAnimation* propertyAnim = it.value(); if (propertyAnim == finishedAnim) { QGraphicsWidget* widget = it.key(); - m_animation[type].remove(widget); + it.remove(); finishedAnim->deleteLater(); emit finished(widget, static_cast<AnimationType>(type)); |
