mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-09 15:47:38 +02:00
* Don't crash without a model.
This commit is contained in:
@@ -473,7 +473,7 @@ TrackView::updateHoverIndex( const QPoint& pos )
|
|||||||
repaint();
|
repaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_model->style() == TrackModel::Short || m_model->style() == TrackModel::ShortWithAvatars )
|
if ( !m_model || m_model->style() == TrackModel::Short || m_model->style() == TrackModel::ShortWithAvatars )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( idx.column() == TrackModel::Artist || idx.column() == TrackModel::Album )
|
if ( idx.column() == TrackModel::Artist || idx.column() == TrackModel::Album )
|
||||||
|
Reference in New Issue
Block a user