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

only use resolvers to compare if there are resolvers tied to results

This commit is contained in:
Anton Romanov
2016-01-27 15:01:45 -08:00
parent c068d8c9e3
commit 944827c48c

View File

@@ -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() )