From 43b6ada0db401fd29cb77b5ab621f786bd31483b Mon Sep 17 00:00:00 2001 From: David Schulz Date: Tue, 8 Jun 2021 12:54:22 +0200 Subject: Core: filepathify FileIconProvider Change-Id: Id6fcc05317f3f5144c662fb4826438407f8d9d21 Reviewed-by: hjk --- src/plugins/coreplugin/vcsmanager.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/plugins/coreplugin/vcsmanager.cpp') 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 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 filesByVersionControl; -- cgit v1.2.3