From 2f861070de68b742366212f960f04719f5c609d1 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 5 Dec 2017 20:44:09 +0100 Subject: [PATCH] GUI: Fix: Create all directories in build dir (#1009) mkdir() only creates the "last" directory, if more directories in the path are missing it fails and does not create any directory. With mkpath() all missing directories are created now. --- gui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index fab4c6ab8..f219d341d 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1451,7 +1451,7 @@ void MainWindow::analyzeProject(const ProjectFile *projectFile) QMessageBox::Yes | QMessageBox::No, this); if (msg.exec() == QMessageBox::Yes) { - QDir().mkdir(buildDir); + QDir().mkpath(buildDir); } } }