mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: SettingsObjectWrapper remove buehlmann property
remove buehlmann(), setBuehlmann(bool) buehlmann() is really planner_deco_mode == BUEHLMANN, so no need for a function setBuehlmann is dangerous, because buehlmann is saved on disk, but not in prefs.* and thus can lead to inconsistency between bool buehlmann and planner_deco_moce. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
26be37fe58
commit
3c69c8299b
3 changed files with 0 additions and 24 deletions
|
@ -198,11 +198,6 @@ bool TechnicalDetailsSettings::calcndltts() const
|
|||
return prefs.calcndltts;
|
||||
}
|
||||
|
||||
bool TechnicalDetailsSettings::buehlmann() const
|
||||
{
|
||||
return prefs.planner_deco_mode == BUEHLMANN;
|
||||
}
|
||||
|
||||
int TechnicalDetailsSettings::gflow() const
|
||||
{
|
||||
return prefs.gflow;
|
||||
|
@ -408,17 +403,6 @@ void TechnicalDetailsSettings::setCalcndltts(bool value)
|
|||
emit calcndlttsChanged(value);
|
||||
}
|
||||
|
||||
void TechnicalDetailsSettings::setBuehlmann(bool value)
|
||||
{
|
||||
if (value == (prefs.planner_deco_mode == BUEHLMANN))
|
||||
return;
|
||||
QSettings s;
|
||||
s.beginGroup(group);
|
||||
s.setValue("buehlmann", value);
|
||||
prefs.planner_deco_mode = value ? BUEHLMANN : VPMB;
|
||||
emit buehlmannChanged(value);
|
||||
}
|
||||
|
||||
void TechnicalDetailsSettings::setGflow(int value)
|
||||
{
|
||||
if (value == prefs.gflow)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue