mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 16:29:43 +01:00
Synchronous responses are for n00bs, only allow async.
This commit is contained in:
parent
fffb00693a
commit
68d3dd6631
@ -515,8 +515,9 @@ QtScriptResolver::artists( const Tomahawk::collection_ptr& collection )
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug() << "Artists JavaScript Result:" << m;
|
||||
m_resolverHelper->addArtistResults( m );
|
||||
QString errorMessage = tr( "Script Resolver Warning: API call %1 returned data sychronously." ).arg( eval );
|
||||
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( errorMessage ) );
|
||||
tDebug() << errorMessage << m;
|
||||
}
|
||||
|
||||
|
||||
@ -549,9 +550,9 @@ QtScriptResolver::albums( const Tomahawk::collection_ptr& collection, const Toma
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug() << "Albums JavaScript Result:" << m;
|
||||
|
||||
m_resolverHelper->addAlbumResults( m );
|
||||
QString errorMessage = tr( "Script Resolver Warning: API call %1 returned data sychronously." ).arg( eval );
|
||||
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( errorMessage ) );
|
||||
tDebug() << errorMessage << m;
|
||||
}
|
||||
|
||||
|
||||
@ -585,9 +586,9 @@ QtScriptResolver::tracks( const Tomahawk::collection_ptr& collection, const Toma
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug() << "Tracks JavaScript Result:" << m;
|
||||
|
||||
m_resolverHelper->addAlbumTrackResults( m );
|
||||
QString errorMessage = tr( "Script Resolver Warning: API call %1 returned data sychronously." ).arg( eval );
|
||||
JobStatusView::instance()->model()->addJob( new ErrorStatusMessage( errorMessage ) );
|
||||
tDebug() << errorMessage << m;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user