Commit e39b515c authored by Tobias Hunger's avatar Tobias Hunger

GenericProject: Fix display of files in project directory

Having a folder "." in the project tree is ugly, so fix that.

Task-number: QTCREATORBUG-15344
Change-Id: I0817f609162dbc39f7bb4f98e6afe85169710fb7
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent e072133a
......@@ -79,6 +79,9 @@ QHash<QString, QStringList> sortFilesIntoPaths(const QString &base, const QSet<Q
relativeFilePath.chop(1);
}
if (relativeFilePath == QLatin1String("."))
relativeFilePath.clear();
filesInPath[relativeFilePath].append(absoluteFileName);
}
return filesInPath;
......
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