BrowserModel: fixed an issue introduced by the last change.

Fri, 28 Aug 2020 19:34:39 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 28 Aug 2020 19:34:39 +0200
changeset 7678
285c786c4a9c
parent 7677
d4d33990b355
child 7679
5816200f021b

BrowserModel: fixed an issue introduced by the last change.

eric6/UI/BrowserModel.py file | annotate | diff | comparison | revisions
--- a/eric6/UI/BrowserModel.py	Tue Aug 25 16:26:11 2020 +0200
+++ b/eric6/UI/BrowserModel.py	Fri Aug 28 19:34:39 2020 +0200
@@ -693,7 +693,10 @@
             if repopulate:
                 self.endInsertRows()
         parentItem._populated = True
-        if fileName not in self.watchedFileItems:
+        if (parentItem.type_ == BrowserItemFile and
+            fileName not in self.watchedFileItems
+        ):
+            # watch the file only in the file browser not the project viewer
             self.watcher.addPath(fileName)
             self.watchedFileItems[fileName] = parentItem
 

eric ide

mercurial