VCS/ProjectHelper.py

changeset 1881
bab54b00f79a
parent 1509
c0b5e693b0eb
child 1941
aedf18497117
equal deleted inserted replaced
1880:dbd4d7698310 1881:bab54b00f79a
44 self.vcs = vcsObject 44 self.vcs = vcsObject
45 self.project = projectObject 45 self.project = projectObject
46 46
47 self.actions = [] 47 self.actions = []
48 48
49 self.vcsAddAct = None
50
49 self.initActions() 51 self.initActions()
50 52
51 def setObjects(self, vcsObject, projectObject): 53 def setObjects(self, vcsObject, projectObject):
52 """ 54 """
53 Public method to set references to the vcs and project objects. 55 Public method to set references to the vcs and project objects.
114 116
115 def showMenu(self): 117 def showMenu(self):
116 """ 118 """
117 Public slot called before the vcs menu is shown. 119 Public slot called before the vcs menu is shown.
118 """ 120 """
119 self.vcsAddAct.setEnabled(self.project.isOpen()) 121 if self.vcsAddAct:
122 self.vcsAddAct.setEnabled(self.project.isOpen())
120 123
121 def _vcsCheckout(self, export=False): 124 def _vcsCheckout(self, export=False):
122 """ 125 """
123 Protected slot used to create a local project from the repository. 126 Protected slot used to create a local project from the repository.
124 127

eric ide

mercurial