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:
parent
e75e204007
commit
0c3a9c61b5
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user