Fixed an issue closing a project.

Sun, 09 May 2010 18:21:53 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 09 May 2010 18:21:53 +0200
changeset 237
607a05c6989b
parent 236
d03ae0227f1c
child 238
b80c63771a69

Fixed an issue closing a project.

Project/ProjectBrowserModel.py file | annotate | diff | comparison | revisions
diff -r d03ae0227f1c -r 607a05c6989b Project/ProjectBrowserModel.py
--- a/Project/ProjectBrowserModel.py	Sun May 09 18:14:47 2010 +0200
+++ b/Project/ProjectBrowserModel.py	Sun May 09 18:21:53 2010 +0200
@@ -361,7 +361,9 @@
         self.__vcsStatus = {}
         
         self.watchedItems = {}
-        self.watcher.removePaths(self.watcher.directories())
+        watchedDirs = self.watcher.directories()
+        if watchedDirs:
+            self.watcher.removePaths(watchedDirs)
         
         self.rootItem.removeChildren()
         self.reset()

eric ide

mercurial