From 9a8a0afa29776c195c6a6acbb77b5d70cecea0c9 Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Sat, 3 Mar 2018 14:35:40 +0100 Subject: 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 --- desktop-widgets/configuredivecomputerdialog.cpp | 3 +-- 1 file changed, 1 insertion(+), 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")); } -- cgit v1.2.3-70-g09d2