1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 15:59:42 +01:00

* Don't retrieve anything for invalid TreeModelItems.

This commit is contained in:
Christian Muehlhaeuser 2011-08-31 13:01:52 +02:00
parent e75e204007
commit 0c3a9c61b5

View File

@ -94,6 +94,8 @@ TreeModel::getCover( const QModelIndex& index )
trackInfo["album"] = item->album()->name();
requestData.type = Tomahawk::InfoSystem::InfoAlbumCoverArt;
}
else
return;
trackInfo["pptr"] = QString::number( (qlonglong)item );
m_coverHash.insert( (qlonglong)item, index );