From 8d2d7cd4a35c0fd7eeabaa8e05e572f2d3faac4c Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Tue, 13 Oct 2015 11:34:26 -0700 Subject: 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 Signed-off-by: Dirk Hohndel --- main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'main.cpp') 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); -- cgit v1.2.3-70-g09d2