diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-10-13 11:34:26 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-13 11:34:26 -0700 |
commit | 8d2d7cd4a35c0fd7eeabaa8e05e572f2d3faac4c (patch) | |
tree | 399eab936c930d858a722331e998316e701f4b31 /qthelper.h | |
parent | 7b51a4c1bee4db3bdd52b3706c86ef96e68e1c70 (diff) | |
download | subsurface-8d2d7cd4a35c0fd7eeabaa8e05e572f2d3faac4c.tar.gz |
This patch reverts commit 50421f1f.
Expose subsurface_mkdir() in qthelper.h as main.cpp already
includes it. Once 'default_directory' is obtained call
subsurface_mkdir() on it. subsurface_mkdir() will not throw an
error if the directory exists according to the QDir documentation.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.h')
-rw-r--r-- | qthelper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qthelper.h b/qthelper.h index f5457b1a9..a2b7b6c39 100644 --- a/qthelper.h +++ b/qthelper.h @@ -130,5 +130,6 @@ bool parseGpsText(const QString &gps_text, double *latitude, double *longitude); QByteArray getCurrentAppState(); void setCurrentAppState(QByteArray state); extern "C" bool in_planner(); +extern "C" void subsurface_mkdir(const char *dir); #endif // QTHELPER_H |