1
0
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:
Christian Muehlhaeuser
2016-06-30 21:43:27 +02:00
parent ffa098e52d
commit 09e9a6e960

View File

@@ -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() )