mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Don't wait for resolving to finish if we want to play a track and already got some results.
This commit is contained in:
@@ -951,9 +951,9 @@ AudioEngine::playItem( Tomahawk::playlistinterface_ptr playlist, const Tomahawk:
|
|||||||
void
|
void
|
||||||
AudioEngine::playItem( Tomahawk::playlistinterface_ptr playlist, const Tomahawk::query_ptr& query )
|
AudioEngine::playItem( Tomahawk::playlistinterface_ptr playlist, const Tomahawk::query_ptr& query )
|
||||||
{
|
{
|
||||||
if ( query->resolvingFinished() )
|
if ( query->resolvingFinished() || query->numResults( true ) )
|
||||||
{
|
{
|
||||||
if ( query->numResults() && query->results().first()->isOnline() )
|
if ( query->numResults( true ) )
|
||||||
{
|
{
|
||||||
playItem( playlist, query->results().first(), query );
|
playItem( playlist, query->results().first(), query );
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user