Skip to content
Snippets Groups Projects
Commit 6d83dda6 authored by Thomas Otto's avatar Thomas Otto Committed by Tobias Hunger
Browse files

GenericProject: remove trailing "/" from .includes paths


Paths in the .includes file are user edited and may contain trailing
slashes.
If these are not filtered out, the CppCompletionAssistProcessor
suggestions are missing the first character (e.g. rc/, not src/).

Change-Id: I19b4c811d504042d0a4eb4ee8961818b3e17051c
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 0b777b00
No related branches found
No related tags found
No related merge requests found
......@@ -330,6 +330,8 @@ QStringList GenericProject::processEntries(const QStringList &paths,
expandEnvironmentVariables(env, trimmedPath);
trimmedPath = Utils::FileName::fromUserInput(trimmedPath).toString();
const QString absPath = QFileInfo(projectDir, trimmedPath).absoluteFilePath();
absolutePaths.append(absPath);
if (map)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment