mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 06:18:17 +01: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:
commit
62dea3a196
@ -408,7 +408,10 @@ Query::resultSorter( const result_ptr& left, const result_ptr& right )
|
||||
return !left->isPreview();
|
||||
}
|
||||
|
||||
return left->resolvedBy()->weight() > right->resolvedBy()->weight();
|
||||
if ( left->resolvedBy() != nullptr && right->resolvedBy() != nullptr )
|
||||
{
|
||||
return left->resolvedBy()->weight() > right->resolvedBy()->weight();
|
||||
}
|
||||
}
|
||||
|
||||
if ( left->isPreview() != right->isPreview() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user