1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-18 11:51:44 +02:00

Don't animate if weare already animating, could cause issues.

This commit is contained in:
Leo Franchi
2011-02-15 22:26:18 -05:00
parent 633b977618
commit 6b8a427602

View File

@@ -156,8 +156,10 @@ void
DynamicView::collapseEntries( int startRow, int num, int numToKeep ) DynamicView::collapseEntries( int startRow, int num, int numToKeep )
{ {
qDebug() << "BEGINNING TO COLLAPSE FROM" << startRow << num << numToKeep; qDebug() << "BEGINNING TO COLLAPSE FROM" << startRow << num << numToKeep;
if( m_fadeOutAnim.state() == QTimeLine::Running ) if( m_fadeOutAnim.state() == QTimeLine::Running ) {
qDebug() << "COLLAPSING TWICE!"; 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 /// 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 /// went past the limit of the view. Just fade out from the beginning to the end in that case. otherwise, animate a slide