eric6/Plugins/VcsPlugins/vcsSubversion/ProjectBrowserHelper.py

changeset 7262
c4b5f3393d63
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7261:3ead033becb8 7262:c4b5f3393d63
110 else: 110 else:
111 for act in self.vcsMultiMenuActions: 111 for act in self.vcsMultiMenuActions:
112 act.setEnabled(False) 112 act.setEnabled(False)
113 for act in self.vcsAddMultiMenuActions: 113 for act in self.vcsAddMultiMenuActions:
114 act.setEnabled(True) 114 act.setEnabled(True)
115 if 1 in self.browser.specialMenuEntries and \ 115 if (
116 self.__itemsHaveFiles(items): 116 1 in self.browser.specialMenuEntries and
117 self.__itemsHaveFiles(items)
118 ):
117 self.vcsMultiMenuAddTree.setEnabled(False) 119 self.vcsMultiMenuAddTree.setEnabled(False)
118 for act in standardItems: 120 for act in standardItems:
119 act.setEnabled(True) 121 act.setEnabled(True)
120 122
121 def showContextMenuDir(self, menu, standardItems): 123 def showContextMenuDir(self, menu, standardItems):
923 925
924 def __SVNConfigure(self): 926 def __SVNConfigure(self):
925 """ 927 """
926 Private method to open the configuration dialog. 928 Private method to open the configuration dialog.
927 """ 929 """
928 e5App().getObject("UserInterface")\ 930 e5App().getObject("UserInterface").showPreferences(
929 .showPreferences("zzz_subversionPage") 931 "zzz_subversionPage")
930 932
931 def __SVNAddToChangelist(self): 933 def __SVNAddToChangelist(self):
932 """ 934 """
933 Private slot called by the context menu to add files to a changelist. 935 Private slot called by the context menu to add files to a changelist.
934 """ 936 """

eric ide

mercurial