1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 13:47:26 +02:00

Don't re-start already running animation

This commit is contained in:
Leo Franchi
2012-07-31 22:21:44 -04:00
parent 03121f95ff
commit ea3f982415

View File

@@ -165,7 +165,7 @@ AnimatedSpinner::drawFrame( QPainter* p, const QRect& rect )
void void
AnimatedSpinner::fadeIn() AnimatedSpinner::fadeIn()
{ {
if ( parentWidget() && isVisible() ) if ( parentWidget() && isVisible() || m_animation->state() == QTimeLine::Running )
return; return;
m_animation->start(); m_animation->start();