Use albumId when locating tracks

This commit is contained in:
Craig Drummond
2015-12-05 10:36:25 +00:00
committed by Craig Drummond
parent cf115a2857
commit 032bc18eab

View File

@@ -439,7 +439,7 @@ QStringList SqlLibraryModel::filenames(const QModelIndexList &list, bool allowPl
QModelIndex SqlLibraryModel::findSongIndex(const Song &song)
{
if (root) {
QModelIndex albumIndex=findAlbumIndex(song.artistOrComposer(), song.album);
QModelIndex albumIndex=findAlbumIndex(song.artistOrComposer(), song.albumId());
if (albumIndex.isValid()) {
if (canFetchMore(albumIndex)) {
fetchMore(albumIndex);