summaryrefslogtreecommitdiffstats
path: root/qthelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qthelper.cpp')
-rw-r--r--qthelper.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qthelper.cpp b/qthelper.cpp
index 12ce2cb3c..e25be9c26 100644
--- a/qthelper.cpp
+++ b/qthelper.cpp
@@ -1073,3 +1073,10 @@ extern "C" void updateWindowTitle()
{
MainWindow::instance()->setTitle();
}
+
+extern "C" void subsurface_mkdir(const char *dir)
+{
+ QDir directory;
+ if (!directory.mkpath(QString(dir)))
+ qDebug() << "failed to create path" << dir;
+}