UI/BrowserModel.py

changeset 5708
9b01b4004314
parent 5656
9c21b2746218
child 5968
c5112b5cb7a9
equal deleted inserted replaced
5707:1273cd92a8f4 5708:9b01b4004314
991 dn = os.path.basename(self._dirName) 991 dn = os.path.basename(self._dirName)
992 992
993 BrowserItem.__init__(self, parent, dn) 993 BrowserItem.__init__(self, parent, dn)
994 994
995 self.type_ = BrowserItemDirectory 995 self.type_ = BrowserItemDirectory
996 if os.path.lexists(self._dirName) and os.path.islink(self._dirName): 996 if not Utilities.isDrive(self._dirName) and \
997 os.path.lexists(self._dirName) and os.path.islink(self._dirName):
997 self.symlink = True 998 self.symlink = True
998 self.icon = UI.PixmapCache.getSymlinkIcon("dirClosed.png") 999 self.icon = UI.PixmapCache.getSymlinkIcon("dirClosed.png")
999 else: 1000 else:
1000 self.icon = UI.PixmapCache.getIcon("dirClosed.png") 1001 self.icon = UI.PixmapCache.getIcon("dirClosed.png")
1001 self._populated = False 1002 self._populated = False

eric ide

mercurial