aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2018-03-03 14:35:40 +0100
committerGravatar Robert C. Helling <helling@atdotde.de>2018-03-05 16:19:49 +0100
commit9a8a0afa29776c195c6a6acbb77b5d70cecea0c9 (patch)
tree1e47faf15ce240bfb54e1097ee504e9c97ba5683 /desktop-widgets
parent1723db9d0b0f4d02f4497c98b48a06dd4a0ce5c5 (diff)
downloadsubsurface-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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/configuredivecomputerdialog.cpp3
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"));
}