summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-10 09:11:34 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-10 09:11:34 -0700
commit6daeb276ad00e0afe2145e151964af56370bede6 (patch)
treec5e935d26a2fb99caee850ccf7645ef0bfe27b9a /qt-ui/diveplanner.cpp
parentecb5f4c792c51ffb34c0f8cfda12fd772d0f05f7 (diff)
downloadsubsurface-6daeb276ad00e0afe2145e151964af56370bede6.tar.gz
Planner: reset GFlow and GFhigh when we're done
While planning we might change the gradient factors. Make sure they are back to what's in the preferences when we're done planning. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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()