diff options
| author | Laurent Montel <[email protected]> | 2008-01-06 16:37:39 +0000 |
|---|---|---|
| committer | Laurent Montel <[email protected]> | 2008-01-06 16:37:39 +0000 |
| commit | df94e72262e2312f2e39a605c0f2efa1a5196266 (patch) | |
| tree | 0f77d88483e8f5eff2438f4d43195d4eabe90fbc /src | |
| parent | ac2e0e2d5464707f42b403d49327aef4d4f3f63b (diff) | |
Backport:
don't start QTimeLine if QTimeLine is already started
svn path=/branches/KDE/4.0/kdebase/apps/; revision=757961
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphincolumnview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dolphincolumnview.cpp b/src/dolphincolumnview.cpp index f119f9d92..bfbc5d9f1 100644 --- a/src/dolphincolumnview.cpp +++ b/src/dolphincolumnview.cpp @@ -503,7 +503,8 @@ void DolphinColumnView::assureVisibleActiveColumn() } else { m_animation->setFrameRange(-m_contentX, -newContentX); } - m_animation->start(); + if(m_animation->state() != QTimeLine::Running) + m_animation->start(); } else if (x < 0) { const int newContentX = m_contentX - x; if (isRightToLeft()) { @@ -511,7 +512,8 @@ void DolphinColumnView::assureVisibleActiveColumn() } else { m_animation->setFrameRange(-m_contentX, -newContentX); } - m_animation->start(); + if(m_animation->state() != QTimeLine::Running) + m_animation->start(); } } |
