GUI: When creating a new project, set a default value for build dir

This commit is contained in:
Daniel Marjamäki 2017-09-25 09:19:22 +02:00
parent 04c2be33a6
commit ecc90c040e
1 changed files with 1 additions and 0 deletions

View File

@ -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) {