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 += dir;
|
||||
incdir = QDir::cleanPath(incdir);
|
||||
|
||||
// include paths must end with '/'
|
||||
if (!incdir.endsWith("/"))
|
||||
incdir += "/";
|
||||
result._includePaths.push_back(incdir.toStdString());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue