src/eric7/UI/BrowserModel.py

branch
eric7
changeset 10517
aecd5a8c958c
parent 10470
cd7bfd539ac9
child 10588
8edb63666f73
child 10592
2bada76be1a6
--- a/src/eric7/UI/BrowserModel.py	Sun Jan 21 12:53:23 2024 +0100
+++ b/src/eric7/UI/BrowserModel.py	Sun Jan 21 13:00:42 2024 +0100
@@ -380,7 +380,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)
@@ -411,7 +411,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)

eric ide

mercurial