mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Don't crash without model.
This commit is contained in:
@@ -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() );
|
||||
|
Reference in New Issue
Block a user