Fixed #1226 (GUI: project include file relative path search problem)
Thanks for Robert Reif for finding and reporting problem in previous commit.
This commit is contained in:
parent
df64a15f2d
commit
e1b30721cd
|
@ -321,6 +321,10 @@ Settings MainWindow::GetCppcheckSettings()
|
||||||
incdir = mCurrentDirectory + "/";
|
incdir = mCurrentDirectory + "/";
|
||||||
incdir += dir;
|
incdir += dir;
|
||||||
incdir = QDir::cleanPath(incdir);
|
incdir = QDir::cleanPath(incdir);
|
||||||
|
|
||||||
|
// include paths must end with '/'
|
||||||
|
if (!incdir.endsWith("/"))
|
||||||
|
incdir += "/";
|
||||||
result._includePaths.push_back(incdir.toStdString());
|
result._includePaths.push_back(incdir.toStdString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue