aboutsummaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qthelper.cpp')
-rw-r--r--qthelper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index 14a48c151..44bb8a33a 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -12,6 +12,7 @@
#include <exif.h>
#include "file.h"
#include "prefs-macros.h"
+#include "mainwindow.h"
#include <QFile>
#include <QRegExp>
#include <QDir>
@@ -1272,3 +1273,8 @@ extern "C" void parse_display_units(char *line)
{
qDebug() << line;
}
+
+extern "C" bool in_planner()
+{
+ return MainWindow::instance()->inPlanner();
+}