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