1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

When sorting results, check for local collection first.

This commit is contained in:
Christian Muehlhaeuser
2015-05-11 11:59:57 +02:00
parent a2b2eca222
commit d40dedfeb2

View File

@@ -399,12 +399,11 @@ Query::resultSorter( const result_ptr& left, const result_ptr& right )
if ( ls == rs ) if ( ls == rs )
{ {
if ( !right->isPreview() ) if ( right->resolvedByCollection() && right->resolvedByCollection()->isLocal() )
{ {
return false; return false;
} }
if ( !right->isPreview() )
if ( right->resolvedByCollection() && right->resolvedByCollection()->isLocal() )
{ {
return false; return false;
} }