From 66c4397efd2d825a61e0dab534cb590c8fea4440 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 16 Oct 2018 19:35:01 +0200 Subject: Preferences: wire-up the deco parameters The deco parameters need special treatment to wire them up to the underlying deco model code. And with the new preferences setup this is a lot of boilerplate. Signed-off-by: Jan Mulder --- desktop-widgets/preferences/preferences_graph.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'desktop-widgets') diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp index 29b749b4e..3902a3111 100644 --- a/desktop-widgets/preferences/preferences_graph.cpp +++ b/desktop-widgets/preferences/preferences_graph.cpp @@ -69,7 +69,9 @@ void PreferencesGraph::syncSettings() prefs.planner_deco_mode = ui->buehlmann->isChecked() ? BUEHLMANN : VPMB; qPrefTechnicalDetails::set_gflow(ui->gflow->value()); qPrefTechnicalDetails::set_gfhigh(ui->gfhigh->value()); + set_gf(ui->gflow->value(), ui->gfhigh->value()); qPrefTechnicalDetails::set_vpmb_conservatism(ui->vpmb_conservatism->value()); + set_vpmb_conservatism(ui->vpmb_conservatism->value()); qPrefTechnicalDetails::set_show_ccr_setpoint(ui->show_ccr_setpoint->isChecked()); qPrefTechnicalDetails::set_show_ccr_sensors(ui->show_ccr_sensors->isChecked()); qPrefTechnicalDetails::set_show_scr_ocpo2(ui->show_scr_ocpo2->isChecked()); -- cgit v1.2.3-70-g09d2