summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/preferences
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2018-10-16 19:50:32 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-19 06:25:32 -0400
commitcc225a44f2342d343e97a58b38b2f510ba1d173c (patch)
treefc692d57770be6e7776773b1e107b008099c56c7 /desktop-widgets/preferences
parent66c4397efd2d825a61e0dab534cb590c8fea4440 (diff)
downloadsubsurface-cc225a44f2342d343e97a58b38b2f510ba1d173c.tar.gz
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 <jlmulder@xs4all.nl>
Diffstat (limited to 'desktop-widgets/preferences')
-rw-r--r--desktop-widgets/preferences/preferences_graph.cpp2
1 files changed, 2 insertions, 0 deletions
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);