1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 21:57:41 +02:00

Set state to Running before url translation.

This commit is contained in:
Christian Muehlhaeuser
2015-03-25 10:00:18 +01:00
parent c90c7a9b37
commit 77eed10a19

View File

@@ -204,6 +204,10 @@ DownloadJob::retry()
bool bool
DownloadJob::download() DownloadJob::download()
{ {
if ( m_state == Running )
return true;
setState( Running );
if ( m_result->resolvedByCollection() ) if ( m_result->resolvedByCollection() )
{ {
Tomahawk::ScriptCollection* collection = qobject_cast<Tomahawk::ScriptCollection*>( m_result->resolvedByCollection().data() ); Tomahawk::ScriptCollection* collection = qobject_cast<Tomahawk::ScriptCollection*>( m_result->resolvedByCollection().data() );