1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

* Don't crash without model.

This commit is contained in:
Christian Muehlhaeuser 2011-10-21 09:48:10 +02:00
parent 3411dde52f
commit 85f970ea2d

View File

@ -525,7 +525,7 @@ TrackView::mousePressEvent( QMouseEvent* event )
{
QTreeView::mousePressEvent( event );
if ( m_model->style() != TrackModel::Detailed )
if ( !m_model || m_model->style() != TrackModel::Detailed )
return;
QModelIndex idx = indexAt( event->pos() );