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