summaryrefslogtreecommitdiffstats
path: root/backend-shared/plannershared.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2020-07-11 13:15:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-07-11 10:37:49 -0700
commit912e1faaf21afbfac0cec07db036d97b13ed847c (patch)
treebe163ed3780ee79cd2bda0b5a27842cb29516109 /backend-shared/plannershared.cpp
parent4ec88aa564d7f5b02fda66342b11ba03fc82d7cf (diff)
downloadsubsurface-912e1faaf21afbfac0cec07db036d97b13ed847c.tar.gz
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>
Diffstat (limited to 'backend-shared/plannershared.cpp')
-rw-r--r--backend-shared/plannershared.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend-shared/plannershared.cpp b/backend-shared/plannershared.cpp
index 164c4cf46..1f67c2c48 100644
--- a/backend-shared/plannershared.cpp
+++ b/backend-shared/plannershared.cpp
@@ -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()