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: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-11-16 12:30:25 +01:00
parent e072133aa4
commit e39b515cd2

View File

@@ -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;