mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
TWK-934: Don't crash when checking TreeView for jump-to-track
This commit is contained in:
parent
2f6b08948a
commit
b2becc6287
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user