mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Make sure we only compare valid results when adding search results.
This commit is contained in:
@@ -336,7 +336,7 @@ SearchWidget::onResultsFound( const QList<Tomahawk::result_ptr>& results )
|
||||
for ( int i = 0; i < m_resultsModel->rowCount( QModelIndex() ); i++ )
|
||||
{
|
||||
PlayableItem* item = m_resultsModel->itemFromIndex( m_resultsModel->index( i, 0, QModelIndex() ) );
|
||||
if ( item && item->query() )
|
||||
if ( item && item->query() && item->query()->numResults( true ) )
|
||||
{
|
||||
if ( item->query()->results().first()->score() < q->results().first()->score() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user