Remove dangling empty file after download error
This commit is contained in:
@@ -359,6 +359,7 @@ void MainWindow::firmwareDownloadAccepted()
|
||||
break;
|
||||
}
|
||||
file.close();
|
||||
file.remove();
|
||||
QMessageBox::critical(this, tr("Error"), errormsg);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user