From fe4a1853d846f6aa35d818cc3356e31a4a1f74f3 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 9 Apr 2015 02:23:23 +0200 Subject: [PATCH] Fixed Query::resultSorter to take previews into account. --- src/libtomahawk/Query.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libtomahawk/Query.cpp b/src/libtomahawk/Query.cpp index fab1d01f0..9b28ae9ca 100644 --- a/src/libtomahawk/Query.cpp +++ b/src/libtomahawk/Query.cpp @@ -413,6 +413,12 @@ Query::resultSorter( const result_ptr& left, const result_ptr& right ) { return true; }*/ + + if ( right->purchaseUrl().isEmpty() ) + { + return false; + } + if ( right->collection() && right->collection()->source()->isLocal() ) { return false;