1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 20:00:13 +02:00

Merge pull request #416 from theli-ua/resolver_sort

only use resolvers to compare if there are resolvers tied to results
This commit is contained in:
Dominik Schmidt
2016-01-28 00:44:50 +01:00

View File

@@ -408,8 +408,11 @@ Query::resultSorter( const result_ptr& left, const result_ptr& right )
return !left->isPreview();
}
if ( left->resolvedBy() != nullptr && right->resolvedBy() != nullptr )
{
return left->resolvedBy()->weight() > right->resolvedBy()->weight();
}
}
if ( left->isPreview() != right->isPreview() )
{