From d571a797465e3d019bad775b59c8a216784f68aa Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 6 Jul 2012 06:30:34 +0200 Subject: [PATCH] * Don't return unresolved queries when proxy-model is supposed to filter out offline / unplayable tracks. --- src/libtomahawk/playlist/PlayableProxyModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libtomahawk/playlist/PlayableProxyModel.cpp b/src/libtomahawk/playlist/PlayableProxyModel.cpp index 507f3120a..0bdb821e5 100644 --- a/src/libtomahawk/playlist/PlayableProxyModel.cpp +++ b/src/libtomahawk/playlist/PlayableProxyModel.cpp @@ -128,7 +128,7 @@ PlayableProxyModel::filterAcceptsRow( int sourceRow, const QModelIndex& sourcePa if ( q->numResults() ) r = q->results().first(); - if ( !m_showOfflineResults && !r.isNull() && !r->isOnline() ) + if ( !m_showOfflineResults && ( r.isNull() || !r->isOnline() ) ) return false; if ( filterRegExp().isEmpty() )