mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
* Double-clicking in ColumnView opens the corresponding page.
This commit is contained in:
@@ -240,7 +240,15 @@ ColumnView::onItemActivated( const QModelIndex& index )
|
|||||||
PlayableItem* item = m_model->itemFromIndex( m_proxyModel->mapToSource( index ) );
|
PlayableItem* item = m_model->itemFromIndex( m_proxyModel->mapToSource( index ) );
|
||||||
if ( item )
|
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() );
|
AudioEngine::instance()->playItem( m_proxyModel->playlistInterface(), item->result() );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user