diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2015-07-07 20:29:37 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-07 11:49:16 -0700 |
commit | 68ceb75294348953baa8827fbe3f5778980efbec (patch) | |
tree | 1b78dc422c890fa0f43f58730c513fcb6c1661ac /qt-models | |
parent | 19648e28cc9463ecad831ef28a736466bd87428f (diff) | |
download | subsurface-68ceb75294348953baa8827fbe3f5778980efbec.tar.gz |
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 <j.bygdell@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } |