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:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user