mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
* Don't crash without a model.
This commit is contained in:
parent
4a63606c84
commit
3411dde52f
@ -473,7 +473,7 @@ TrackView::updateHoverIndex( const QPoint& pos )
|
||||
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;
|
||||
|
||||
if ( idx.column() == TrackModel::Artist || idx.column() == TrackModel::Album )
|
||||
|
Loading…
x
Reference in New Issue
Block a user