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>
This commit is contained in:
Joakim Bygdell 2015-07-07 20:29:37 +02:00 committed by Dirk Hohndel
parent 19648e28cc
commit 68ceb75294
2 changed files with 26 additions and 6 deletions

View file

@ -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));
}