1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

* TreeView now tries to fallback to playing a query when there's no online result.

This commit is contained in:
Christian Muehlhaeuser
2012-12-23 03:26:23 +01:00
parent bac515990f
commit 12bea3708b

View File

@@ -243,6 +243,10 @@ TreeView::onItemActivated( const QModelIndex& index )
{ {
AudioEngine::instance()->playItem( m_proxyModel->playlistInterface(), item->result() ); AudioEngine::instance()->playItem( m_proxyModel->playlistInterface(), item->result() );
} }
else if ( !item->query().isNull() )
{
AudioEngine::instance()->playItem( m_proxyModel->playlistInterface(), item->query() );
}
} }
} }