mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
Fixed crash in TrackView.cpp triggered by Qt >5.6.1.
This commit is contained in:
@@ -383,6 +383,8 @@ void
|
||||
TrackView::currentChanged( const QModelIndex& current, const QModelIndex& previous )
|
||||
{
|
||||
QTreeView::currentChanged( current, previous );
|
||||
if ( !m_model )
|
||||
return;
|
||||
|
||||
PlayableItem* item = m_model->itemFromIndex( m_proxyModel->mapToSource( current ) );
|
||||
if ( item && item->query() )
|
||||
|
Reference in New Issue
Block a user