1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-28 11:42:42 +01:00

* Remove spinner when AudioEngine stopped.

This commit is contained in:
Christian Muehlhaeuser 2012-06-26 05:01:39 +02:00
parent 3a5acb721c
commit d0fdff760e

View File

@ -245,6 +245,9 @@ GridItemDelegate::onPlayClicked( const QPersistentModelIndex& index )
closure = NewClosure( AudioEngine::instance(), SIGNAL( started( Tomahawk::result_ptr ) ),
const_cast<GridItemDelegate*>(this), SLOT( onPlaylistChanged( QPersistentModelIndex ) ), QPersistentModelIndex( index ) );
closure = NewClosure( AudioEngine::instance(), SIGNAL( stopped() ),
const_cast<GridItemDelegate*>(this), SLOT( onPlaylistChanged( QPersistentModelIndex ) ), QPersistentModelIndex( index ) );
closure->setAutoDelete( false );
connect( AudioEngine::instance(), SIGNAL( stopped() ), SLOT( onPlaybackFinished() ) );
@ -482,6 +485,11 @@ GridItemDelegate::onPlaylistChanged( const QPersistentModelIndex& index )
m_pauseButton[ index ]->deleteLater();
m_pauseButton.remove( index );
}
if ( m_spinner.contains( index ) )
{
m_spinner[ index ]->deleteLater();
m_spinner.remove( index );
}
}
}
}