Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py

changeset 3326
b4868bd56338
parent 3315
bd1a25ead18d
child 3342
f8cd11fa94ed
equal deleted inserted replaced
3325:d2d6dda86d32 3326:b4868bd56338
595 @param coord the position of the mouse pointer (QPoint) 595 @param coord the position of the mouse pointer (QPoint)
596 """ 596 """
597 # TODO: set status of menu entries according to their conditions 597 # TODO: set status of menu entries according to their conditions
598 if self.vcs.isExtensionActive("largefiles"): 598 if self.vcs.isExtensionActive("largefiles"):
599 enable = len(self.__getUnversionedItems()) > 0 599 enable = len(self.__getUnversionedItems()) > 0
600 for act in self.lfActions: 600 else:
601 act.setEnabled(enable) 601 enable = False
602 for act in self.lfActions:
603 act.setEnabled(enable)
602 self.menu.popup(self.mapToGlobal(coord)) 604 self.menu.popup(self.mapToGlobal(coord))
603 605
604 def __commit(self): 606 def __commit(self):
605 """ 607 """
606 Private slot to handle the Commit context menu entry. 608 Private slot to handle the Commit context menu entry.

eric ide

mercurial