1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-11 16:44:05 +02:00

Clear playlist on station stop

This commit is contained in:
Leo Franchi
2011-02-06 16:11:44 -05:00
parent 2f8996258f
commit 59e6714f3f

View File

@@ -76,6 +76,8 @@ DynamicModel::stopOnDemand()
m_onDemandRunning = false; m_onDemandRunning = false;
AudioEngine::instance()->stop(); AudioEngine::instance()->stop();
// delete all the tracks
clear();
disconnect( AudioEngine::instance(), SIGNAL( loading( Tomahawk::result_ptr ) ), this, SLOT( newTrackLoading() ) ); disconnect( AudioEngine::instance(), SIGNAL( loading( Tomahawk::result_ptr ) ), this, SLOT( newTrackLoading() ) );
} }