713 # step 1: check for new entries |
713 # step 1: check for new entries |
714 children = itm.children() |
714 children = itm.children() |
715 for f in entryInfoList: |
715 for f in entryInfoList: |
716 fpath = FileSystemUtilities.toNativeSeparators(f.absoluteFilePath()) |
716 fpath = FileSystemUtilities.toNativeSeparators(f.absoluteFilePath()) |
717 childFound = False |
717 childFound = False |
718 for child in children: |
718 for child in children[:]: |
719 if child.name() == fpath: |
719 if child.name() == fpath: |
720 childFound = True |
720 childFound = True |
721 children.remove(child) |
721 children.remove(child) |
722 break |
722 break |
723 if childFound: |
723 if childFound: |
753 if len(entryInfoList) != itm.childCount(): |
753 if len(entryInfoList) != itm.childCount(): |
754 for row in range(oldCnt - 1, -1, -1): |
754 for row in range(oldCnt - 1, -1, -1): |
755 child = itm.child(row) |
755 child = itm.child(row) |
756 childname = FileSystemUtilities.fromNativeSeparators(child.name()) |
756 childname = FileSystemUtilities.fromNativeSeparators(child.name()) |
757 entryFound = False |
757 entryFound = False |
758 for f in entryInfoList: |
758 for f in entryInfoList[:]: |
759 if f.absoluteFilePath() == childname: |
759 if f.absoluteFilePath() == childname: |
760 entryFound = True |
760 entryFound = True |
761 entryInfoList.remove(f) |
761 entryInfoList.remove(f) |
762 break |
762 break |
763 if entryFound: |
763 if entryFound: |