1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-21 13:21:52 +02:00

Use isEmpty rather than count.

This commit is contained in:
Christian Muehlhaeuser
2015-03-31 19:49:35 +02:00
parent fe4a1853d8
commit 8373e9d5c5

View File

@@ -337,13 +337,17 @@ Pipeline::reportResults( QID qid, const QList< result_ptr >& results )
return; return;
if ( !d->qids.contains( qid ) ) if ( !d->qids.contains( qid ) )
{ {
if ( results.length() > 0 && !results[0]->resolvedBy().isNull() ) if ( !results.isEmpty() )
{ {
tDebug() << "Result arrived too late for:" << qid << "by" << results[0]->resolvedBy()->name(); ResultProvider* resolvedBy = results[0]->resolvedBy();
} if ( resolvedBy )
else {
{ tDebug() << "Result arrived too late for:" << qid << "by" << resolvedBy->name();
tDebug() << "Result arrived too late for:" << qid; }
else
{
tDebug() << "Result arrived too late for:" << qid;
}
} }
return; return;
} }