diff options
-rw-r--r-- | desktop-widgets/configuredivecomputerdialog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/desktop-widgets/configuredivecomputerdialog.cpp b/desktop-widgets/configuredivecomputerdialog.cpp index c3fc6c940..b615b453a 100644 --- a/desktop-widgets/configuredivecomputerdialog.cpp +++ b/desktop-widgets/configuredivecomputerdialog.cpp @@ -1526,8 +1526,7 @@ void ConfigureDiveComputerDialog::dc_open() ui.bluetoothMode->setEnabled(false); ui.DiveComputerList->setEnabled(false); ui.logToFile->setEnabled(false); - if (fw_upgrade_possible) - ui.updateFirmwareButton->setEnabled(true); + ui.updateFirmwareButton->setEnabled(fw_upgrade_possible); ui.progressBar->setFormat(tr("Connected to device")); } |