AlbumCoverChoiceController: Add missing close
This commit is contained in:
parent
4ba5113842
commit
2b4aa1d6b2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue