summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-08-12 12:06:52 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-15 09:10:29 -0700
commita8ce8c3ef1562559508c77c63ca2d101b3bdcce6 (patch)
tree311b7177db81583ca27a4331e3b91c0c80ead79a /qt-ui
parent2455a5dec70d1baa2d0009e602db6b4f19941b56 (diff)
downloadsubsurface-a8ce8c3ef1562559508c77c63ca2d101b3bdcce6.tar.gz
Some unification between Buehlmann and VPM-B
This patch makes deco_allowed_depth() work both for Buehlmann as well as VPM-B (as long as the VPM-B internal variable total_gradient[] is valid). As a bonus, in VPM-B mode, in the planner, the ceilings are VPM-B ceilings and not Buehlmann GF. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index db1d8c8b7..f22884a84 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -1716,6 +1716,8 @@ void MainWindow::setApplicationState(const QByteArray& state) {
return;
currentApplicationState = state;
+ in_planner = (state == "PlanDive" || state == "EditPlannedDive");
+
#define SET_CURRENT_INDEX( X ) \
if (applicationState[state].X) { \
ui.X->setCurrentWidget( applicationState[state].X); \