Use original file when loading cover from file in tag editor

This commit is contained in:
Jonas Kvinge
2021-03-07 02:36:50 +01:00
parent 869f8cf380
commit e587e8cfc8
2 changed files with 13 additions and 7 deletions

View File

@@ -186,6 +186,7 @@ AlbumCoverImageResult AlbumCoverChoiceController::LoadImageFromFile(Song *song)
if (!result.image_data.isEmpty()) {
result.mime_type = Utilities::MimeTypeFromData(result.image_data);
result.image.loadFromData(result.image_data);
result.cover_url = QUrl::fromLocalFile(cover_file);
}
}