mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 06:25:16 +00:00
Removed unnecessary null pointer checks, closes #5
This commit is contained in:
parent
116794e89b
commit
1ea2771e32
4 changed files with 12 additions and 26 deletions
|
|
@ -28,9 +28,7 @@ void FirmwareUpdateDialog::on_bFile_clicked()
|
|||
auto filename = QFileDialog::getOpenFileName(nullptr, "Open firmware file", "", "Firmware file (*.vnafw)", nullptr, QFileDialog::DontUseNativeDialog);
|
||||
if (filename.length() > 0) {
|
||||
ui->lFile->setText(filename);
|
||||
if(file) {
|
||||
delete file;
|
||||
}
|
||||
delete file;
|
||||
file = new QFile(filename);
|
||||
ui->bStart->setEnabled(true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue