mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
* Don't retrieve anything for invalid TreeModelItems.
This commit is contained in:
@@ -94,6 +94,8 @@ TreeModel::getCover( const QModelIndex& index )
|
|||||||
trackInfo["album"] = item->album()->name();
|
trackInfo["album"] = item->album()->name();
|
||||||
requestData.type = Tomahawk::InfoSystem::InfoAlbumCoverArt;
|
requestData.type = Tomahawk::InfoSystem::InfoAlbumCoverArt;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
|
||||||
trackInfo["pptr"] = QString::number( (qlonglong)item );
|
trackInfo["pptr"] = QString::number( (qlonglong)item );
|
||||||
m_coverHash.insert( (qlonglong)item, index );
|
m_coverHash.insert( (qlonglong)item, index );
|
||||||
|
Reference in New Issue
Block a user