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>
This commit is contained in:
Robert C. Helling 2015-08-18 10:03:51 +02:00 committed by Dirk Hohndel
parent 4e89a6020e
commit 72806e42bc
4 changed files with 12 additions and 9 deletions

View file

@ -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();
}