forked from qt-creator/qt-creator
Core: filepathify FileIconProvider
Change-Id: Id6fcc05317f3f5144c662fb4826438407f8d9d21 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user