1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-09-08 05:00:50 +02:00

* Fixed crashing on playing from queue.

This commit is contained in:
Christian Muehlhaeuser
2011-11-22 01:36:22 +01:00
parent d38c9730fb
commit a38c0a544d

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