1
0
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:
Christian Muehlhaeuser 2011-11-22 01:36:22 +01:00
parent 1c1b6ea940
commit 0f21cde318

View File

@ -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();