Project/ProjectBrowserModel.py

changeset 103
59137afca666
parent 97
c4086afea02b
child 169
a03768260179
diff -r 85fc2a5cddb4 -r 59137afca666 Project/ProjectBrowserModel.py
--- a/Project/ProjectBrowserModel.py	Sat Feb 06 11:14:30 2010 +0000
+++ b/Project/ProjectBrowserModel.py	Sat Feb 06 17:40:24 2010 +0000
@@ -122,7 +122,11 @@
             self._dirName = os.path.dirname(self._dirName)
         
         self.type_ = ProjectBrowserItemSimpleDirectory
-        self.icon = UI.PixmapCache.getIcon("dirClosed.png")
+        if os.path.lexists(self._dirName) and os.path.islink(self._dirName):
+            self.symlink = True
+            self.icon = UI.PixmapCache.getSymlinkIcon("dirClosed.png")
+        else:
+            self.icon = UI.PixmapCache.getIcon("dirClosed.png")
     
     def dirName(self):
         """

eric ide

mercurial