mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 22:45:23 +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
|
|
@ -188,10 +188,8 @@ void AppWindow::ConnectToDevice(QString serial)
|
|||
|
||||
void AppWindow::DisconnectDevice()
|
||||
{
|
||||
if(device) {
|
||||
delete device;
|
||||
device = nullptr;
|
||||
}
|
||||
delete device;
|
||||
device = nullptr;
|
||||
ui->actionDisconnect->setEnabled(false);
|
||||
ui->actionManual_Control->setEnabled(false);
|
||||
ui->actionFirmware_Update->setEnabled(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue