mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 13:01:53 +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:
parent
4813698a9a
commit
f2631cda74
@ -951,9 +951,9 @@ AudioEngine::playItem( Tomahawk::playlistinterface_ptr playlist, const Tomahawk:
|
||||
void
|
||||
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 );
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user