mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 15:29:42 +01:00
* Fixed crashing on playing from queue.
This commit is contained in:
parent
1c1b6ea940
commit
0f21cde318
@ -252,7 +252,7 @@ TrackModel::setCurrentItem( const QModelIndex& index )
|
||||
}
|
||||
|
||||
TrackModelItem* entry = itemFromIndex( index );
|
||||
if ( entry )
|
||||
if ( index.isValid() && entry && !entry->query().isNull() )
|
||||
{
|
||||
m_currentIndex = index;
|
||||
m_currentUuid = entry->query()->id();
|
||||
|
Loading…
x
Reference in New Issue
Block a user