We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91ceb73 commit 77ac3ceCopy full SHA for 77ac3ce
1 file changed
lib/importproject.cpp
@@ -1698,8 +1698,10 @@ void ImportProject::setRelativePaths(const std::string &filename)
1698
const std::vector<std::string> basePaths{Path::fromNativeSeparators(Path::getCurrentPath())};
1699
for (auto &fs: fileSettings) {
1700
fs.file.setPath(Path::getRelativePath(fs.filename(), basePaths));
1701
- for (auto &includePath: fs.includePaths)
1702
- includePath = Path::getRelativePath(includePath, basePaths);
+ for (auto &includePath: fs.includePaths) {
+ const std::string rel = Path::getRelativePath(includePath, basePaths);
1703
+ includePath = rel.empty() ? "." : rel;
1704
+ }
1705
}
1706
1707
0 commit comments