mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Also check if a query has a result to determine equality, instead of only brittle string comparison
This commit is contained in:
@@ -50,7 +50,8 @@ QueueProxyModel::onPlaybackStarted( const Tomahawk::result_ptr& result )
|
|||||||
{
|
{
|
||||||
QModelIndex idx = index( i, 0 );
|
QModelIndex idx = index( i, 0 );
|
||||||
PlayableItem* item = itemFromIndex( mapToSource( idx ) );
|
PlayableItem* item = itemFromIndex( mapToSource( idx ) );
|
||||||
if ( item && item->query() && item->query()->equals( result->toQuery() ) )
|
if ( item && item->query() && ( item->query()->results().contains( result ) ||
|
||||||
|
item->query()->equals( result->toQuery() ) ) )
|
||||||
remove( idx );
|
remove( idx );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user