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

Simpler Pipeline code.

This commit is contained in:
Christian Muehlhaeuser
2015-04-26 18:11:28 +02:00
parent f23e18192b
commit 3d52622fda

View File

@@ -363,21 +363,22 @@ Pipeline::reportResults( QID qid, const QList< result_ptr >& results )
cleanResults << r; cleanResults << r;
} }
addResultsToQuery( q, cleanResults );
if ( !httpResults.isEmpty() ) if ( !httpResults.isEmpty() )
{ {
const ResultUrlChecker* checker = new ResultUrlChecker( q, httpResults ); const ResultUrlChecker* checker = new ResultUrlChecker( q, httpResults );
connect( checker, SIGNAL( done() ), SLOT( onResultUrlCheckerDone() ) ); connect( checker, SIGNAL( done() ), SLOT( onResultUrlCheckerDone() ) );
} }
else
{
decQIDState( q );
}
addResultsToQuery( q, cleanResults );
/* if ( q->solved() && !q->isFullTextQuery() ) /* if ( q->solved() && !q->isFullTextQuery() )
{ {
setQIDState( q, 0 ); setQIDState( q, 0 );
return; return;
}*/ }*/
if ( httpResults.isEmpty() )
decQIDState( q );
} }