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:
parent
3411dde52f
commit
85f970ea2d
@ -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() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user