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>
This commit is contained in:
Jan Mulder 2018-10-16 19:50:32 +02:00 committed by Dirk Hohndel
parent 66c4397efd
commit cc225a44f2

View file

@ -31,9 +31,11 @@ void PreferencesGraph::refreshSettings()
if (prefs.display_deco_mode == BUEHLMANN) { if (prefs.display_deco_mode == BUEHLMANN) {
ui->buehlmann->setChecked(true); ui->buehlmann->setChecked(true);
ui->vpmb->setChecked(false); ui->vpmb->setChecked(false);
on_buehlmann_toggled(true);
} else { } else {
ui->buehlmann->setChecked(false); ui->buehlmann->setChecked(false);
ui->vpmb->setChecked(true); ui->vpmb->setChecked(true);
on_buehlmann_toggled(false);
} }
ui->gflow->setValue(prefs.gflow); ui->gflow->setValue(prefs.gflow);