Add function to calculate gas maximum narcotic depth

Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Rick Walsh 2016-07-06 22:40:31 +10:00 committed by Dirk Hohndel
parent 1ba61d7ad5
commit 9fbd11744f
6 changed files with 20 additions and 9 deletions

View file

@ -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);
}