src/eric7/UI/BrowserModel.py

branch
eric7
changeset 10517
aecd5a8c958c
parent 10470
cd7bfd539ac9
child 10588
8edb63666f73
child 10592
2bada76be1a6
equal deleted inserted replaced
10516:72baef0baa76 10517:aecd5a8c958c
378 # step 1: check for new entries 378 # step 1: check for new entries
379 children = itm.children() 379 children = itm.children()
380 for f in entryInfoList: 380 for f in entryInfoList:
381 fpath = FileSystemUtilities.toNativeSeparators(f.absoluteFilePath()) 381 fpath = FileSystemUtilities.toNativeSeparators(f.absoluteFilePath())
382 childFound = False 382 childFound = False
383 for child in children: 383 for child in children[:]:
384 if child.name() == fpath: 384 if child.name() == fpath:
385 childFound = True 385 childFound = True
386 children.remove(child) 386 children.remove(child)
387 break 387 break
388 if childFound: 388 if childFound:
409 if len(entryInfoList) != itm.childCount(): 409 if len(entryInfoList) != itm.childCount():
410 for row in range(oldCnt - 1, -1, -1): 410 for row in range(oldCnt - 1, -1, -1):
411 child = itm.child(row) 411 child = itm.child(row)
412 childname = FileSystemUtilities.fromNativeSeparators(child.name()) 412 childname = FileSystemUtilities.fromNativeSeparators(child.name())
413 entryFound = False 413 entryFound = False
414 for f in entryInfoList: 414 for f in entryInfoList[:]:
415 if f.absoluteFilePath() == childname: 415 if f.absoluteFilePath() == childname:
416 entryFound = True 416 entryFound = True
417 entryInfoList.remove(f) 417 entryInfoList.remove(f)
418 break 418 break
419 if entryFound: 419 if entryFound:

eric ide

mercurial