mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* More consistent stateChanged() behaviour for sources.
This commit is contained in:
@@ -369,7 +369,9 @@ Source::onPlaybackStarted( const Tomahawk::query_ptr& query, unsigned int durati
|
|||||||
|
|
||||||
if ( m_playlistInterface.isNull() )
|
if ( m_playlistInterface.isNull() )
|
||||||
playlistInterface();
|
playlistInterface();
|
||||||
|
|
||||||
emit playbackStarted( query );
|
emit playbackStarted( query );
|
||||||
|
emit stateChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -380,6 +382,7 @@ Source::onPlaybackFinished( const Tomahawk::query_ptr& query )
|
|||||||
emit playbackFinished( query );
|
emit playbackFinished( query );
|
||||||
|
|
||||||
m_currentTrack.clear();
|
m_currentTrack.clear();
|
||||||
|
emit stateChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -387,7 +390,6 @@ void
|
|||||||
Source::trackTimerFired()
|
Source::trackTimerFired()
|
||||||
{
|
{
|
||||||
m_currentTrack.clear();
|
m_currentTrack.clear();
|
||||||
|
|
||||||
emit stateChanged();
|
emit stateChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user