From cc225a44f2342d343e97a58b38b2f510ba1d173c Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Tue, 16 Oct 2018 19:50:32 +0200 Subject: [PATCH] Preferences: set deco parameters correctly enabled And fix another bug in this area of the code. It appeared that the gflow/gfhigh and conservatism deco parameters where not enabled at startup, but after toggling the VPM vs BUEHLMANN setting they were. So, fix this as well. Signed-off-by: Jan Mulder --- desktop-widgets/preferences/preferences_graph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop-widgets/preferences/preferences_graph.cpp b/desktop-widgets/preferences/preferences_graph.cpp index 3902a3111..f8262bbb1 100644 --- a/desktop-widgets/preferences/preferences_graph.cpp +++ b/desktop-widgets/preferences/preferences_graph.cpp @@ -31,9 +31,11 @@ void PreferencesGraph::refreshSettings() if (prefs.display_deco_mode == BUEHLMANN) { ui->buehlmann->setChecked(true); ui->vpmb->setChecked(false); + on_buehlmann_toggled(true); } else { ui->buehlmann->setChecked(false); ui->vpmb->setChecked(true); + on_buehlmann_toggled(false); } ui->gflow->setValue(prefs.gflow);