diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-09-19 14:38:38 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-09-20 08:54:41 -0700 |
commit | 5b080beddef3e08b86eb53448e737b4867a50c1a (patch) | |
tree | d858d5d68a0b52b30f88d74f2bdf494418265bff /core/subsurface-qt/SettingsObjectWrapper.cpp | |
parent | a6f186279fcce9631623b94bfdc00fa3fd071b4c (diff) | |
download | subsurface-5b080beddef3e08b86eb53448e737b4867a50c1a.tar.gz |
Remove option to apply GFlow at maxdepth
This option should have never been there. This is not how
gradient factors are supposed to work. It would only trick
users to use the wrong value..
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp')
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.cpp | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index 720a887d6..4fcb96580 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -396,11 +396,6 @@ bool TechnicalDetailsSettings::showSac() const return prefs.show_sac; } -bool TechnicalDetailsSettings::gfLowAtMaxDepth() const -{ - return prefs.gf_low_at_maxdepth; -} - bool TechnicalDetailsSettings::displayUnusedTanks() const { return prefs.display_unused_tanks; @@ -561,7 +556,7 @@ void TechnicalDetailsSettings::setGflow(int value) s.beginGroup(group); s.setValue("gflow", value); prefs.gflow = value; - set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth); + set_gf(prefs.gflow, prefs.gfhigh); emit gflowChanged(value); } @@ -574,7 +569,7 @@ void TechnicalDetailsSettings::setGfhigh(int value) s.beginGroup(group); s.setValue("gfhigh", value); prefs.gfhigh = value; - set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth); + set_gf(prefs.gflow, prefs.gfhigh); emit gfhighChanged(value); } @@ -684,18 +679,6 @@ void TechnicalDetailsSettings::setShowSac(bool value) emit showSacChanged(value); } -void TechnicalDetailsSettings::setGfLowAtMaxDepth(bool value) -{ - if (value == prefs.gf_low_at_maxdepth) - return; - QSettings s; - s.beginGroup(group); - s.setValue("gf_low_at_maxdepth", value); - prefs.gf_low_at_maxdepth = value; - set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth); - emit gfLowAtMaxDepthChanged(value); -} - void TechnicalDetailsSettings::setDisplayUnusedTanks(bool value) { if (value == prefs.display_unused_tanks) @@ -2244,7 +2227,7 @@ void SettingsObjectWrapper::load() GET_BOOL("show_ccr_setpoint",show_ccr_setpoint); GET_BOOL("show_ccr_sensors",show_ccr_sensors); GET_BOOL("zoomed_plot", zoomed_plot); - set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth); + set_gf(prefs.gflow, prefs.gfhigh); set_vpmb_conservatism(prefs.vpmb_conservatism); GET_BOOL("show_sac", show_sac); GET_BOOL("display_unused_tanks", display_unused_tanks); |