summaryrefslogtreecommitdiffstats
path: root/linux.c
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 /linux.c
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 'linux.c')
-rw-r--r--linux.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/linux.c b/linux.c
index 6133c262d..d4131c7ea 100644
--- a/linux.c
+++ b/linux.c
@@ -3,7 +3,6 @@
#include "dive.h"
#include "display.h"
#include "membuffer.h"
-#include "qthelperfromc.h"
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
@@ -64,8 +63,6 @@ static const char *system_default_path_append(const char *append)
memset(buffer, 0, len);
strcat(buffer, home);
strcat(buffer, path);
- // make sure this path exists
- subsurface_mkdir(buffer);
if (append) {
strcat(buffer, "/");
strcat(buffer, append);