From 935734100f07092800ec4467b88c59a9a4efd572 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sat, 7 Jan 2017 03:11:19 +0100 Subject: Rename prefs.deco_mode to prefs.planner_deco_mode This is to avoid confusion with planner.display_deco_mode. When accessing the "current deco mode" use the decoMode() helper function. Signed-off-by: Robert C. Helling --- desktop-widgets/diveplanner.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'desktop-widgets/diveplanner.cpp') diff --git a/desktop-widgets/diveplanner.cpp b/desktop-widgets/diveplanner.cpp index ee85d12bc..0eee95ebf 100644 --- a/desktop-widgets/diveplanner.cpp +++ b/desktop-widgets/diveplanner.cpp @@ -303,10 +303,10 @@ PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f) ui.drop_stone_mode->setChecked(prefs.drop_stone_mode); ui.switch_at_req_stop->setChecked(prefs.switch_at_req_stop); ui.min_switch_duration->setValue(prefs.min_switch_duration / 60); - ui.recreational_deco->setChecked(prefs.deco_mode == RECREATIONAL); - ui.buehlmann_deco->setChecked(prefs.deco_mode == BUEHLMANN); - ui.vpmb_deco->setChecked(prefs.deco_mode == VPMB); - disableDecoElements((int) prefs.deco_mode); + ui.recreational_deco->setChecked(prefs.planner_deco_mode == RECREATIONAL); + ui.buehlmann_deco->setChecked(prefs.planner_deco_mode == BUEHLMANN); + ui.vpmb_deco->setChecked(prefs.planner_deco_mode == VPMB); + disableDecoElements((int) prefs.planner_deco_mode); // should be the same order as in dive_comp_type! rebreather_modes << tr("Open circuit") << tr("CCR") << tr("pSCR"); -- cgit v1.2.3-70-g09d2