Commit f6b9e90f authored by Daniel Teske's avatar Daniel Teske
Browse files

Generic Project: Fix relative paths outside of project directory



The paths are later split on '/' and thus should not end in '/'.

Task-number: QTCREATORBUG-8840

Change-Id: I3fb1ddd53bb1e33123e20f683c481d56ad651d62
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
Reviewed-by: default avatarThorbjørn Lindeijer <bjorn@lindeijer.nl>
parent 1294ee66
......@@ -71,6 +71,8 @@ QHash<QString, QStringList> sortFilesIntoPaths(const QString &base, const QSet<Q
} else {
// `file' is not part of the project.
relativeFilePath = baseDir.relativeFilePath(absoluteFilePath.toString());
if (relativeFilePath.endsWith(QLatin1Char('/')))
relativeFilePath.chop(1);
}
filesInPath[relativeFilePath].append(absoluteFileName);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment