mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Safety first.
This commit is contained in:
@@ -334,6 +334,8 @@ SearchWidget::onResultsFound( const QList<Tomahawk::result_ptr>& results )
|
|||||||
while ( queries.count() )
|
while ( queries.count() )
|
||||||
{
|
{
|
||||||
query_ptr q = queries.takeFirst();
|
query_ptr q = queries.takeFirst();
|
||||||
|
if ( !q->results().count() )
|
||||||
|
continue;
|
||||||
|
|
||||||
bool done = false;
|
bool done = false;
|
||||||
for ( int i = 0; i < m_resultsModel->rowCount( QModelIndex() ); i++ )
|
for ( int i = 0; i < m_resultsModel->rowCount( QModelIndex() ); i++ )
|
||||||
|
Reference in New Issue
Block a user