mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 20:00:13 +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 )
|
TrackView::currentChanged( const QModelIndex& current, const QModelIndex& previous )
|
||||||
{
|
{
|
||||||
QTreeView::currentChanged( current, previous );
|
QTreeView::currentChanged( current, previous );
|
||||||
|
if ( !m_model )
|
||||||
|
return;
|
||||||
|
|
||||||
PlayableItem* item = m_model->itemFromIndex( m_proxyModel->mapToSource( current ) );
|
PlayableItem* item = m_model->itemFromIndex( m_proxyModel->mapToSource( current ) );
|
||||||
if ( item && item->query() )
|
if ( item && item->query() )
|
||||||
|
Reference in New Issue
Block a user