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