diff options
author | David Schulz <david.schulz@qt.io> | 2021-06-08 12:54:22 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2021-06-09 12:25:19 +0000 |
commit | 43b6ada0db401fd29cb77b5ab621f786bd31483b (patch) | |
tree | 66ecf46da753937ae9bdf623089e30bb237d81ce /src/plugins/coreplugin/vcsmanager.cpp | |
parent | 093f3479ce19ad559d3a07263a23de6fa3e60c09 (diff) |
Core: filepathify FileIconProvider
Change-Id: Id6fcc05317f3f5144c662fb4826438407f8d9d21
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/vcsmanager.cpp')
-rw-r--r-- | src/plugins/coreplugin/vcsmanager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/coreplugin/vcsmanager.cpp b/src/plugins/coreplugin/vcsmanager.cpp index 4501c67b9a..f980fafbd9 100644 --- a/src/plugins/coreplugin/vcsmanager.cpp +++ b/src/plugins/coreplugin/vcsmanager.cpp @@ -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; |