AlbumCoverChoiceController: Add missing close

This commit is contained in:
Jonas Kvinge 2024-06-12 18:09:59 +02:00
parent 4ba5113842
commit 2b4aa1d6b2
1 changed files with 1 additions and 0 deletions

View File

@ -672,6 +672,7 @@ QUrl AlbumCoverChoiceController::SaveCoverToFileAutomatic(const Song::Source sou
if (!result.image_data.isEmpty() && result.is_jpeg()) {
if (file.open(QIODevice::WriteOnly)) {
if (file.write(result.image_data) > 0) {
file.close();
return QUrl::fromLocalFile(filepath);
}
else {