We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3c9d06 commit 09cdeadCopy full SHA for 09cdead
1 file changed
gui/mainwindow.cpp
@@ -847,8 +847,12 @@ Settings MainWindow::getCppcheckSettings()
847
848
const QString &buildDir = mProjectFile->getBuildDir();
849
if (!buildDir.isEmpty()) {
850
- QString prjpath = QFileInfo(mProjectFile->getFilename()).absolutePath();
851
- result.buildDir = (prjpath + '/' + buildDir).toStdString();
+ if (QDir(buildDir).isAbsolute()) {
+ result.buildDir = buildDir.toStdString();
852
+ } else {
853
+ QString prjpath = QFileInfo(mProjectFile->getFilename()).absolutePath();
854
+ result.buildDir = (prjpath + '/' + buildDir).toStdString();
855
+ }
856
}
857
858
0 commit comments