summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-08-04 19:26:51 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-12 07:36:10 -0700
commit26be37fe58114dad5f5c7769f6b9d1909b602f2b (patch)
treee1c74dd2b44174e4ce3e0a5466419cabfce00f47 /desktop-widgets/preferences
parente2374e2f81a498a15511ec554a34577f2c6fc3d1 (diff)
downloadsubsurface-26be37fe58114dad5f5c7769f6b9d1909b602f2b.tar.gz
desktop_widget: preferences_graph, replace setBuehlmann
setBuehlmann is really planner_deco_mode = BUEHLMANN, change to ensure consistency. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r--desktop-widgets/preferences/preferences_graph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp
index b35893bd3..f3b206826 100644
--- a/desktop-widgets/preferences/preferences_graph.cpp
+++ b/desktop-widgets/preferences/preferences_graph.cpp
@@ -67,7 +67,7 @@ void PreferencesGraph::syncSettings()
auto tech = SettingsObjectWrapper::instance()->techDetails;
tech->setModpO2(ui->maxpo2->value());
tech->setRedceiling(ui->red_ceiling->isChecked());
- tech->setBuehlmann(ui->buehlmann->isChecked());
+ prefs.planner_deco_mode = ui->buehlmann->isChecked() ? BUEHLMANN : VPMB;
tech->setGflow(ui->gflow->value());
tech->setGfhigh(ui->gfhigh->value());
tech->setVpmbConservatism(ui->vpmb_conservatism->value());