1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-30 19:00:12 +02:00

Only animate when visible

This commit is contained in:
Leo Franchi
2011-11-02 22:48:48 -04:00
parent 9418fd0fb8
commit d6778a55cf

View File

@@ -123,7 +123,7 @@ Breadcrumb::updateButtons( const QModelIndex& updateFrom )
btn->show();
// Animate all buttons except the first
if ( m_buttons.count() > 0 )
if ( m_buttons.count() > 0 && isVisible() )
{
QPropertyAnimation* animation = new QPropertyAnimation( btn, "pos" );
animation->setDuration( 300 );