aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-10-13 11:34:26 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-13 11:34:26 -0700
commit8d2d7cd4a35c0fd7eeabaa8e05e572f2d3faac4c (patch)
tree399eab936c930d858a722331e998316e701f4b31 /main.cpp
parent7b51a4c1bee4db3bdd52b3706c86ef96e68e1c70 (diff)
downloadsubsurface-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 'main.cpp')
-rw-r--r--main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index f27a17474..171876abf 100644
--- a/main.cpp
+++ b/main.cpp
@@ -36,6 +36,7 @@ int main(int argc, char **argv)
const char *default_directory = system_default_directory();
const char *default_filename = system_default_filename();
+ subsurface_mkdir(default_directory);
for (i = 1; i < arguments.length(); i++) {
QString a = arguments.at(i);