forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user