From ecc90c040e46f7ee509e06380284febd585980b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 25 Sep 2017 09:19:22 +0200 Subject: [PATCH] GUI: When creating a new project, set a default value for build dir --- gui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 2255aeaf1..215183aa9 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1516,6 +1516,7 @@ void MainWindow::newProjectFile() delete mProjectFile; mProjectFile = new ProjectFile(this); mProjectFile->setFilename(filepath); + mProjectFile->setBuildDir(filename.left(filename.indexOf(".")) + "-cppcheck-build-dir"); ProjectFileDialog dlg(mProjectFile, this); if (dlg.exec() == QDialog::Accepted) {