mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Fixed crashing on playing from queue.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user