From d40dedfeb204d10d703cae38292893d50f817dfc Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Mon, 11 May 2015 11:59:57 +0200 Subject: [PATCH] When sorting results, check for local collection first. --- src/libtomahawk/Query.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/libtomahawk/Query.cpp b/src/libtomahawk/Query.cpp index d891f6f7f..5c5ccc1e1 100644 --- a/src/libtomahawk/Query.cpp +++ b/src/libtomahawk/Query.cpp @@ -399,12 +399,11 @@ Query::resultSorter( const result_ptr& left, const result_ptr& right ) if ( ls == rs ) { - if ( !right->isPreview() ) + if ( right->resolvedByCollection() && right->resolvedByCollection()->isLocal() ) { return false; } - - if ( right->resolvedByCollection() && right->resolvedByCollection()->isLocal() ) + if ( !right->isPreview() ) { return false; }