mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
* Fixed TWK-522: Queries could not be activated in ArtistView.
This commit is contained in:
@@ -164,6 +164,11 @@ ArtistView::onItemActivated( const QModelIndex& index )
|
|||||||
m_model->setCurrentItem( item->index );
|
m_model->setCurrentItem( item->index );
|
||||||
AudioEngine::instance()->playItem( m_proxyModel, item->result() );
|
AudioEngine::instance()->playItem( m_proxyModel, item->result() );
|
||||||
}
|
}
|
||||||
|
else if ( !item->query().isNull() && item->query()->results().count() )
|
||||||
|
{
|
||||||
|
m_model->setCurrentItem( item->index );
|
||||||
|
AudioEngine::instance()->playItem( m_proxyModel, item->query()->results().first() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user