┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-02-02 09:37:25 +0100
committerPeter Penz <[email protected]>2012-02-02 09:38:50 +0100
commitdef780c672af2b90e8face3720e1567432b32b8d (patch)
tree243170867a147bd644a05b9fe97abc530009925a /src
parent7f4e9d9ed908eaa10659cbd04f53a82e28e8a59b (diff)
Fix pending zooming animation
If doLayout() is invoked with the 'NoAnimation' hint, it must be assured that any ongoing animations are stopped.
Diffstat (limited to 'src')
-rw-r--r--src/kitemviews/kitemlistview.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp
index 8aa984e4b..d09018474 100644
--- a/src/kitemviews/kitemlistview.cpp
+++ b/src/kitemviews/kitemlistview.cpp
@@ -1353,12 +1353,6 @@ void KItemListView::doLayout(LayoutAnimationHint hint, int changedIndex, int cha
}
applyNewPos = false;
}
- } else if (m_animation->isStarted(widget, KItemListViewAnimation::MovingAnimation)) {
- if (animate) {
- applyNewPos = false;
- } else {
- m_animation->stop(widget);
- }
}
if (animate) {
@@ -1386,6 +1380,8 @@ void KItemListView::doLayout(LayoutAnimationHint hint, int changedIndex, int cha
// The size of the view might have been changed. Animate the moving of the position.
applyNewPos = !moveWidget(widget, itemBounds);
}
+ } else {
+ m_animation->stop(widget);
}
if (applyNewPos) {