From 024a8586c0fc82dbf75b30ae766f63808ea50da9 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Sun, 6 Feb 2011 16:33:52 -0500 Subject: [PATCH] fix stopping and starting stations --- src/libtomahawk/playlist/dynamic/DynamicModel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/dynamic/DynamicModel.cpp b/src/libtomahawk/playlist/dynamic/DynamicModel.cpp index 516dac937..332134a7a 100644 --- a/src/libtomahawk/playlist/dynamic/DynamicModel.cpp +++ b/src/libtomahawk/playlist/dynamic/DynamicModel.cpp @@ -29,7 +29,6 @@ DynamicModel::DynamicModel( QObject* parent ) , m_lastResolvedRow( 0 ) { - connect( AudioEngine::instance(), SIGNAL( loading( Tomahawk::result_ptr ) ), this, SLOT( newTrackLoading() ) ); } DynamicModel::~DynamicModel() @@ -53,10 +52,14 @@ DynamicModel::loadPlaylist( const Tomahawk::dynplaylist_ptr& playlist ) void DynamicModel::startOnDemand() { + connect( AudioEngine::instance(), SIGNAL( loading( Tomahawk::result_ptr ) ), this, SLOT( newTrackLoading() ) ); + m_playlist->generator()->startOnDemand(); m_onDemandRunning = true; m_startOnResolved = true; + m_currentAttempts = 0; + m_lastResolvedRow = 0; } void