mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
1ba61d7ad5
commit
9fbd11744f
6 changed files with 20 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue