From 68ceb75294348953baa8827fbe3f5778980efbec Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Tue, 7 Jul 2015 20:29:37 +0200 Subject: Planner: disable unrelated planner settings When VPM-B is the choosen deco algorithm changing, GF low and high have no effect. So lets disable them similar to what we do for recreational mode. Signed-off-by: Joakim Bygdell Signed-off-by: Dirk Hohndel --- qt-models/diveplannermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-models/diveplannermodel.cpp') diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index e4cff38ec..e82daba11 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -447,7 +447,7 @@ void DivePlannerPointsModel::setDisplayTransitions(bool value) void DivePlannerPointsModel::setDecoMode(int mode) { prefs.deco_mode = deco_mode(mode); - emit recreationChanged(mode == int(RECREATIONAL)); + emit recreationChanged(mode == int(prefs.deco_mode)); emit dataChanged(createIndex(0, 0), createIndex(rowCount() - 1, COLUMNS -1)); } -- cgit v1.2.3-70-g09d2