mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
* Double-clicking in ColumnView opens the corresponding page.
This commit is contained in:
parent
bb6af87b33
commit
890f14a23c
@ -240,7 +240,15 @@ ColumnView::onItemActivated( const QModelIndex& index )
|
||||
PlayableItem* item = m_model->itemFromIndex( m_proxyModel->mapToSource( index ) );
|
||||
if ( item )
|
||||
{
|
||||
if ( !item->result().isNull() && item->result()->isOnline() )
|
||||
if ( !item->artist().isNull() )
|
||||
{
|
||||
ViewManager::instance()->show( item->artist() );
|
||||
}
|
||||
else if ( !item->album().isNull() )
|
||||
{
|
||||
ViewManager::instance()->show( item->album() );
|
||||
}
|
||||
else if ( !item->result().isNull() && item->result()->isOnline() )
|
||||
{
|
||||
AudioEngine::instance()->playItem( m_proxyModel->playlistInterface(), item->result() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user