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. |