mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
4e89a6020e
commit
72806e42bc
4 changed files with 12 additions and 9 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue