summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/SettingsObjectWrapper.cpp
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2016-07-06 22:40:31 +1000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-07-09 12:08:06 -0700
commit9fbd11744f1bfffbc6973e0f9483ae1630dd8722 (patch)
tree3b4873ba46e85fb5f61cb87ce103aba1285231ae /core/subsurface-qt/SettingsObjectWrapper.cpp
parent1ba61d7ad5025cf3bafc86705cf4c174aef8c264 (diff)
downloadsubsurface-9fbd11744f1bfffbc6973e0f9483ae1630dd8722.tar.gz
Add function to calculate gas maximum narcotic depth
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp')
-rw-r--r--core/subsurface-qt/SettingsObjectWrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp
index b8865e256..4604abfd7 100644
--- a/core/subsurface-qt/SettingsObjectWrapper.cpp
+++ b/core/subsurface-qt/SettingsObjectWrapper.cpp
@@ -917,7 +917,7 @@ int DivePlannerSettings::decopo2() const
int DivePlannerSettings::bestmixend() const
{
- return prefs.bestmixend;
+ return prefs.bestmixend.mm;
}
int DivePlannerSettings::reserveGas() const
@@ -1099,7 +1099,7 @@ void DivePlannerSettings::setBestmixend(int value)
QSettings s;
s.beginGroup(group);
s.setValue("bestmixend", value);
- prefs.bestmixend = value;
+ prefs.bestmixend.mm = value;
emit bestmixendChanged(value);
}