Use QFileInfo::path instead of QUrl::RemoveFilename

This commit is contained in:
Jonas Kvinge
2023-06-15 21:06:18 +02:00
parent b87a950357
commit 354b55cbbc
2 changed files with 3 additions and 2 deletions

View File

@@ -642,7 +642,7 @@ QUrl AlbumCoverChoiceController::SaveCoverToFileAutomatic(const Song *song, cons
song->effective_albumartist(),
song->effective_album(),
song->album_id(),
song->url().adjusted(QUrl::RemoveFilename).path(),
QFileInfo(song->url().toLocalFile()).path(),
result,
force_overwrite);