Make MND display depend on O2 narcotic preference

A while ago, we introduced a preference whether O2 should
be considered narcotic. We used this when computing
best mix or when entering the He content via MND. But
we forgot to make the displayed MND depend on this
preference. This patch add this.

Fixes #2895

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2020-07-11 13:15:21 +02:00 committed by Dirk Hohndel
parent 4ec88aa564
commit 912e1faaf2
5 changed files with 12 additions and 3 deletions

View file

@ -126,7 +126,7 @@ void PlannerShared::set_o2narcotic(bool value)
{
qPrefDivePlanner::set_o2narcotic(value);
DivePlannerPointsModel::instance()->emitDataChanged();
DivePlannerPointsModel::instance()->cylindersModel()->updateBestMixes();
DivePlannerPointsModel::instance()->cylindersModel()->emitDataChanged();
}
double PlannerShared::bottompo2()