mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
Only start playing preferred result if it is from the currently playing Query
This commit is contained in:
@@ -447,5 +447,7 @@ void
|
|||||||
TrackDetailView::onResultClicked( const Tomahawk::playlistinterface_ptr& playlist, const Tomahawk::result_ptr& result, const Tomahawk::query_ptr& fromQuery )
|
TrackDetailView::onResultClicked( const Tomahawk::playlistinterface_ptr& playlist, const Tomahawk::result_ptr& result, const Tomahawk::query_ptr& fromQuery )
|
||||||
{
|
{
|
||||||
fromQuery->setPreferredResult( result );
|
fromQuery->setPreferredResult( result );
|
||||||
|
if (AudioEngine::instance()->isPlaying() && fromQuery->results().contains( AudioEngine::instance()->currentTrack() )) {
|
||||||
AudioEngine::instance()->playItem( playlist, result, fromQuery );
|
AudioEngine::instance()->playItem( playlist, result, fromQuery );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user