From 898ea6acb541d76b86320538ae56c9fcd6f151be Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Sat, 22 Aug 2015 19:40:20 +0200 Subject: Recmode: Disable gas switch options Gas switch is not part of recreational mode, so disable the switch options. Signed-off-by: Joakim Bygdell Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qt-ui/diveplanner.cpp') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 82ecb05dc..7f0d129a2 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -228,6 +228,8 @@ void PlannerSettingsWidget::disableDecoElements(int mode) ui.decopo2->setDisabled(true); ui.reserve_gas->setDisabled(false); ui.conservatism_lvl->setDisabled(true); + ui.switch_at_req_stop->setDisabled(true); + ui.min_switch_duration->setDisabled(true); } else if (mode == VPMB) { ui.gflow->setDisabled(true); @@ -238,6 +240,8 @@ void PlannerSettingsWidget::disableDecoElements(int mode) ui.decopo2->setDisabled(false); ui.reserve_gas->setDisabled(true); ui.conservatism_lvl->setDisabled(false); + ui.switch_at_req_stop->setDisabled(false); + ui.min_switch_duration->setDisabled(false); } else if (mode == BUEHLMANN) { ui.gflow->setDisabled(false); @@ -248,6 +252,8 @@ void PlannerSettingsWidget::disableDecoElements(int mode) ui.decopo2->setDisabled(false); ui.reserve_gas->setDisabled(true); ui.conservatism_lvl->setDisabled(true); + ui.switch_at_req_stop->setDisabled(false); + ui.min_switch_duration->setDisabled(false); } } -- cgit v1.2.3-70-g09d2