summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-rw-r--r--qt-ui/diveplanner.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index c03ec63ad..f5339c6ef 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -336,6 +336,10 @@ void DivePlannerPointsModel::setPlanMode(Mode m)
mode = m;
if (m == NOTHING)
stagingDive = NULL;
+ // the planner may reset our GF settings that are used to show deco
+ // reset them to what's in the preferences
+ if (m != PLAN)
+ set_gf(prefs.gflow, prefs.gfhigh, prefs.gf_low_at_maxdepth);
}
bool DivePlannerPointsModel::isPlanner()