1
0
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:
Christian Muehlhaeuser 2011-10-21 09:41:54 +02:00
parent 4a63606c84
commit 3411dde52f

View File

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