Fixed an issue in the browser model causing hidden files to be always ignored (see Issue 440). eric7

Thu, 25 Aug 2022 19:35:37 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 25 Aug 2022 19:35:37 +0200
branch
eric7
changeset 9297
c1c808e65211
parent 9296
ccbbacc92b6e
child 9298
8863f3e970a2

Fixed an issue in the browser model causing hidden files to be always ignored (see Issue 440).

src/eric7/UI/BrowserModel.py file | annotate | diff | comparison | revisions
--- a/src/eric7/UI/BrowserModel.py	Thu Aug 25 17:08:37 2022 +0200
+++ b/src/eric7/UI/BrowserModel.py	Thu Aug 25 19:35:37 2022 +0200
@@ -321,7 +321,9 @@
             # just ignore the situation we don't have a reference to the item
             return
 
-        dirFilter = QDir.Filter.AllEntries | QDir.Filter.NoDotAndDotDot
+        dirFilter = (
+            QDir.Filter.AllEntries | QDir.Filter.NoDotAndDotDot | QDir.Filter.Hidden
+        )
 
         for itm in self.watchedItems[path]:
             oldCnt = itm.childCount()
@@ -548,7 +550,9 @@
 
         qdir = QDir(parentItem.dirName())
 
-        dirFilter = QDir.Filter.AllEntries | QDir.Filter.NoDotAndDotDot
+        dirFilter = (
+            QDir.Filter.AllEntries | QDir.Filter.NoDotAndDotDot | QDir.Filter.Hidden
+        )
         entryInfoList = qdir.entryInfoList(dirFilter)
         if len(entryInfoList) > 0:
             if repopulate:

eric ide

mercurial