mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
TWK-934: Don't crash when checking TreeView for jump-to-track
This commit is contained in:
@@ -419,7 +419,7 @@ TreeView::onMenuTriggered( int action )
|
||||
bool
|
||||
TreeView::jumpToCurrentTrack()
|
||||
{
|
||||
if ( !m_proxyModel )
|
||||
if ( !m_proxyModel || !m_proxyModel->sourceModel() )
|
||||
return false;
|
||||
|
||||
scrollTo( m_proxyModel->currentIndex(), QAbstractItemView::PositionAtCenter );
|
||||
|
Reference in New Issue
Block a user