eric6/Plugins/VcsPlugins/vcsGit/GitBundleDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
26 @param parent parent widget (QWidget) 26 @param parent parent widget (QWidget)
27 """ 27 """
28 super(GitBundleDialog, self).__init__(parent) 28 super(GitBundleDialog, self).__init__(parent)
29 self.setupUi(self) 29 self.setupUi(self)
30 30
31 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 31 self.buttonBox.button(
32 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
32 33
33 self.tagCombo.addItems(sorted(tagsList)) 34 self.tagCombo.addItems(sorted(tagsList))
34 self.branchCombo.addItems(["master"] + sorted(branchesList)) 35 self.branchCombo.addItems(["master"] + sorted(branchesList))
35 36
36 def __updateOK(self): 37 def __updateOK(self):
43 elif self.tagButton.isChecked(): 44 elif self.tagButton.isChecked():
44 enabled = self.tagCombo.currentText() != "" 45 enabled = self.tagCombo.currentText() != ""
45 elif self.branchButton.isChecked(): 46 elif self.branchButton.isChecked():
46 enabled = self.branchCombo.currentText() != "" 47 enabled = self.branchCombo.currentText() != ""
47 48
48 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) 49 self.buttonBox.button(
50 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled)
49 51
50 @pyqtSlot(bool) 52 @pyqtSlot(bool)
51 def on_revisionsButton_toggled(self, checked): 53 def on_revisionsButton_toggled(self, checked):
52 """ 54 """
53 Private slot to handle changes of the revisions select button. 55 Private slot to handle changes of the revisions select button.

eric ide

mercurial