src/eric7/UI/BrowserModel.py

branch
eric7
changeset 9297
c1c808e65211
parent 9221
bf71ee032bb4
child 9413
80c06d472826
equal deleted inserted replaced
9296:ccbbacc92b6e 9297:c1c808e65211
319 """ 319 """
320 if path not in self.watchedItems: 320 if path not in self.watchedItems:
321 # just ignore the situation we don't have a reference to the item 321 # just ignore the situation we don't have a reference to the item
322 return 322 return
323 323
324 dirFilter = QDir.Filter.AllEntries | QDir.Filter.NoDotAndDotDot 324 dirFilter = (
325 QDir.Filter.AllEntries | QDir.Filter.NoDotAndDotDot | QDir.Filter.Hidden
326 )
325 327
326 for itm in self.watchedItems[path]: 328 for itm in self.watchedItems[path]:
327 oldCnt = itm.childCount() 329 oldCnt = itm.childCount()
328 330
329 qdir = QDir(itm.dirName()) 331 qdir = QDir(itm.dirName())
546 """ 548 """
547 self._addWatchedItem(parentItem) 549 self._addWatchedItem(parentItem)
548 550
549 qdir = QDir(parentItem.dirName()) 551 qdir = QDir(parentItem.dirName())
550 552
551 dirFilter = QDir.Filter.AllEntries | QDir.Filter.NoDotAndDotDot 553 dirFilter = (
554 QDir.Filter.AllEntries | QDir.Filter.NoDotAndDotDot | QDir.Filter.Hidden
555 )
552 entryInfoList = qdir.entryInfoList(dirFilter) 556 entryInfoList = qdir.entryInfoList(dirFilter)
553 if len(entryInfoList) > 0: 557 if len(entryInfoList) > 0:
554 if repopulate: 558 if repopulate:
555 self.beginInsertRows( 559 self.beginInsertRows(
556 self.createIndex(parentItem.row(), 0, parentItem), 560 self.createIndex(parentItem.row(), 0, parentItem),

eric ide

mercurial