diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-08-18 10:03:51 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-18 06:42:01 -0700 |
commit | 72806e42bc23ab7c7f2a639a1efee017388b53bc (patch) | |
tree | f367ec161dec60ad7247322cd8a603fc4a3a91d1 /qthelper.cpp | |
parent | 4e89a6020ec02fdc7a7af9b59ef918cb610f5a76 (diff) | |
download | subsurface-72806e42bc23ab7c7f2a639a1efee017388b53bc.tar.gz |
Replace global in_planner variable by helper function
as promised earlier
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.cpp')
-rw-r--r-- | qthelper.cpp | 6 |
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(); +} |