From b84e41bc89c857eb5a7534ebdaef95ad004d9562 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 19 Mar 2022 13:58:10 +0100 Subject: [PATCH] App: make sure to create parent directories of a document's transient directory --- src/App/Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Document.cpp b/src/App/Document.cpp index 8f6c1f6599..3294812caf 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -1478,7 +1478,7 @@ void Document::onChanged(const Property* prop) this->TransientDir.setValue(new_dir); } else { - if (!TransDirNew.createDirectory()) + if (!TransDirNew.createDirectories()) Base::Console().Warning("Failed to create '%s'\n", new_dir.c_str()); else this->TransientDir.setValue(new_dir);