summaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qthelper.cpp')
-rw-r--r--qthelper.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index 44bb8a33a..de1d893df 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -1274,7 +1274,19 @@ extern "C" void parse_display_units(char *line)
qDebug() << line;
}
+static QByteArray currentApplicationState;
+
+QByteArray getCurrentAppState()
+{
+ return currentApplicationState;
+}
+
+void setCurrentAppState(QByteArray state)
+{
+ currentApplicationState = state;
+}
+
extern "C" bool in_planner()
{
- return MainWindow::instance()->inPlanner();
+ return (currentApplicationState == "PlanDive" || currentApplicationState == "EditPlannedDive");
}