Core: filepathify FileIconProvider

Change-Id: Id6fcc05317f3f5144c662fb4826438407f8d9d21
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2021-06-08 12:54:22 +02:00
parent 093f3479ce
commit 43b6ada0db
16 changed files with 41 additions and 41 deletions

View File

@@ -345,10 +345,8 @@ FilePaths VcsManager::promptToDelete(const FilePaths &filePaths)
// Categorize files by their parent directory, so we won't call
// findVersionControlForDirectory() more often than necessary.
QMap<FilePath, FilePaths> filesByParentDir;
for (const FilePath &fp : filePaths) {
filesByParentDir[FilePath::fromString(QDir::cleanPath(fp.toFileInfo().absolutePath()))]
.append(fp);
}
for (const FilePath &fp : filePaths)
filesByParentDir[fp.absolutePath()].append(fp);
// Categorize by version control system.
QHash<IVersionControl *, FilePaths> filesByVersionControl;