diff --git a/src/baloo/localbaloofilelisting.cpp b/src/baloo/localbaloofilelisting.cpp --- a/src/baloo/localbaloofilelisting.cpp +++ b/src/baloo/localbaloofilelisting.cpp @@ -64,8 +64,6 @@ QList mNewTracks; - QHash mAllAlbumCover; - QAtomicInt mStopRequest = 0; QDBusServiceWatcher mServiceWatcher; @@ -386,16 +384,6 @@ newTrack.setResourceURI(scanFile); - QFileInfo coverFilePath(scanFileInfo.dir().filePath(QStringLiteral("cover.jpg"))); - if (coverFilePath.exists()) { - d->mAllAlbumCover[albumValue] = QUrl::fromLocalFile(coverFilePath.absoluteFilePath()); - } else { - coverFilePath.setFile(scanFileInfo.dir().filePath(QStringLiteral("cover.png"))); - if (coverFilePath.exists()) { - d->mAllAlbumCover[albumValue] = QUrl::fromLocalFile(coverFilePath.absoluteFilePath()); - } - } - auto itTrack = std::find(allTracks.begin(), allTracks.end(), newTrack); if (itTrack == allTracks.end()) { allTracks.push_back(newTrack); @@ -432,7 +420,7 @@ } if (newTrack.isValid()) { - addCover(newTrack); + AbstractFileListing::addCover(newTrack); } return newTrack;