--- a/src/eric7/Project/ProjectBrowserModel.py Sun Jan 21 12:53:23 2024 +0100 +++ b/src/eric7/Project/ProjectBrowserModel.py Sun Jan 21 13:00:42 2024 +0100 @@ -715,7 +715,7 @@ for f in entryInfoList: fpath = FileSystemUtilities.toNativeSeparators(f.absoluteFilePath()) childFound = False - for child in children: + for child in children[:]: if child.name() == fpath: childFound = True children.remove(child) @@ -755,7 +755,7 @@ child = itm.child(row) childname = FileSystemUtilities.fromNativeSeparators(child.name()) entryFound = False - for f in entryInfoList: + for f in entryInfoList[:]: if f.absoluteFilePath() == childname: entryFound = True entryInfoList.remove(f)