summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2017-01-07 03:11:19 +0100
committerGravatar Subsurface <dirk@subsurface-divelog.org>2017-01-06 20:43:23 -0800
commit935734100f07092800ec4467b88c59a9a4efd572 (patch)
tree20a3398c4f7bece093928f754a84e975f74f6ffb /desktop-widgets/diveplanner.cpp
parentbb4bf639c333bee28d398c3670f52797d726b126 (diff)
downloadsubsurface-935734100f07092800ec4467b88c59a9a4efd572.tar.gz
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 <helling@atdotde.de>
Diffstat (limited to 'desktop-widgets/diveplanner.cpp')
-rw-r--r--desktop-widgets/diveplanner.cpp8
1 files changed, 4 insertions, 4 deletions
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");