From bb4bf639c333bee28d398c3670f52797d726b126 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sat, 7 Jan 2017 03:01:14 +0100 Subject: Fix deco_mode confusion We have two prefernces determining the deco_mode (BUEHLMANN vs VPMB vs RECREATIONAL): One for the planner (deco_mode) and one for displaying dives (display_deco_mode). The former is set in the planner settings while the latter is set in the preferences. This patch clears up a confusion which of the two to use by introducing a helper function that selects the correct variable. Signed-off-by: Robert C. Helling --- core/qthelper.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/qthelper.h') diff --git a/core/qthelper.h b/core/qthelper.h index 357626bfc..4d39ad368 100644 --- a/core/qthelper.h +++ b/core/qthelper.h @@ -40,6 +40,7 @@ bool parseGpsText(const QString &gps_text, double *latitude, double *longitude); QByteArray getCurrentAppState(); void setCurrentAppState(QByteArray state); extern "C" bool in_planner(); +extern "C" enum deco_mode decoMode(); extern "C" void subsurface_mkdir(const char *dir); void init_proxy(); QString getUUID(); -- cgit v1.2.3-70-g09d2