UI/BrowserModel.py

branch
maintenance
changeset 5730
6422afc7adc4
parent 5708
9b01b4004314
child 5968
c5112b5cb7a9
equal deleted inserted replaced
5695:9a71bd9e2e37 5730:6422afc7adc4
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