mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +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
|
bool
|
||||||
TreeView::jumpToCurrentTrack()
|
TreeView::jumpToCurrentTrack()
|
||||||
{
|
{
|
||||||
if ( !m_proxyModel )
|
if ( !m_proxyModel || !m_proxyModel->sourceModel() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
scrollTo( m_proxyModel->currentIndex(), QAbstractItemView::PositionAtCenter );
|
scrollTo( m_proxyModel->currentIndex(), QAbstractItemView::PositionAtCenter );
|
||||||
|
Reference in New Issue
Block a user