mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 10:33:59 +02:00
* No need to check all results for playability. Their sorted by that, so we just check the first one.
This commit is contained in:
@@ -604,13 +604,10 @@ AudioEngine::playItem( Tomahawk::playlistinterface_ptr playlist, const Tomahawk:
|
|||||||
{
|
{
|
||||||
if ( query->resolvingFinished() )
|
if ( query->resolvingFinished() )
|
||||||
{
|
{
|
||||||
foreach ( const result_ptr& result, query->results() )
|
if ( query->numResults() && query->results().first()->isOnline() )
|
||||||
{
|
{
|
||||||
if ( result->isOnline() )
|
playItem( playlist, query->results().first() );
|
||||||
{
|
return;
|
||||||
playItem( playlist, result );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
JobStatusView::instance()->model()->addJob(
|
JobStatusView::instance()->model()->addJob(
|
||||||
|
Reference in New Issue
Block a user