From 6b8a4276027fd6f8a8bb6dc5f6cd0cab8f478c89 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Tue, 15 Feb 2011 22:26:18 -0500 Subject: [PATCH] Don't animate if weare already animating, could cause issues. --- src/libtomahawk/playlist/dynamic/DynamicView.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libtomahawk/playlist/dynamic/DynamicView.cpp b/src/libtomahawk/playlist/dynamic/DynamicView.cpp index 8e76f3163..f6e23df9d 100644 --- a/src/libtomahawk/playlist/dynamic/DynamicView.cpp +++ b/src/libtomahawk/playlist/dynamic/DynamicView.cpp @@ -156,8 +156,10 @@ void DynamicView::collapseEntries( int startRow, int num, int numToKeep ) { qDebug() << "BEGINNING TO COLLAPSE FROM" << startRow << num << numToKeep; - if( m_fadeOutAnim.state() == QTimeLine::Running ) - qDebug() << "COLLAPSING TWICE!"; + if( m_fadeOutAnim.state() == QTimeLine::Running ) { + qDebug() << "COLLAPSING TWICE, aborting!"; + return; + } /// Two options: Either we are overflowing our view, or we're not. If we are, it's because the search for a playable track /// went past the limit of the view. Just fade out from the beginning to the end in that case. otherwise, animate a slide