mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +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 );
|
TrackModelItem* entry = itemFromIndex( index );
|
||||||
if ( entry )
|
if ( index.isValid() && entry && !entry->query().isNull() )
|
||||||
{
|
{
|
||||||
m_currentIndex = index;
|
m_currentIndex = index;
|
||||||
m_currentUuid = entry->query()->id();
|
m_currentUuid = entry->query()->id();
|
||||||
|
Reference in New Issue
Block a user