diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2018-03-03 14:35:40 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2018-03-05 16:19:49 +0100 |
commit | 9a8a0afa29776c195c6a6acbb77b5d70cecea0c9 (patch) | |
tree | 1e47faf15ce240bfb54e1097ee504e9c97ba5683 | |
parent | 1723db9d0b0f4d02f4497c98b48a06dd4a0ce5c5 (diff) | |
download | subsurface-9a8a0afa29776c195c6a6acbb77b5d70cecea0c9.tar.gz |
Configure DC dialog: Always correctly set update firmware button
Always set the update firmware button correctly based on DC model.
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
-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")); } |