From 3d52622fda0e98c03f5ef63718531df69680abbc Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 26 Apr 2015 18:11:28 +0200 Subject: [PATCH] Simpler Pipeline code. --- src/libtomahawk/Pipeline.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/libtomahawk/Pipeline.cpp b/src/libtomahawk/Pipeline.cpp index 81c7baebe..52786dbf0 100644 --- a/src/libtomahawk/Pipeline.cpp +++ b/src/libtomahawk/Pipeline.cpp @@ -363,21 +363,22 @@ Pipeline::reportResults( QID qid, const QList< result_ptr >& results ) cleanResults << r; } + addResultsToQuery( q, cleanResults ); if ( !httpResults.isEmpty() ) { const ResultUrlChecker* checker = new ResultUrlChecker( q, httpResults ); connect( checker, SIGNAL( done() ), SLOT( onResultUrlCheckerDone() ) ); } + else + { + decQIDState( q ); + } - addResultsToQuery( q, cleanResults ); /* if ( q->solved() && !q->isFullTextQuery() ) { setQIDState( q, 0 ); return; }*/ - - if ( httpResults.isEmpty() ) - decQIDState( q ); }