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:
Kimmo Varis 2010-01-06 03:15:56 +02:00
parent df64a15f2d
commit e1b30721cd
1 changed files with 4 additions and 0 deletions

View File

@ -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());
}
}