mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 09:49:42 +01:00
* Fixed TWK-522: Queries could not be activated in ArtistView.
This commit is contained in:
parent
b84a884387
commit
d49294d288
@ -164,6 +164,11 @@ ArtistView::onItemActivated( const QModelIndex& index )
|
||||
m_model->setCurrentItem( item->index );
|
||||
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() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user