eric6/Plugins/VcsPlugins/vcsMercurial/HgGraftDialog.py

changeset 7257
c4d0cac9b5c9
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7256:4ef3b78ebb4e 7257:c4d0cac9b5c9
45 """ 45 """
46 Private slot to update the state of the OK button. 46 Private slot to update the state of the OK button.
47 """ 47 """
48 enable = self.revisionsEdit.toPlainText() != "" 48 enable = self.revisionsEdit.toPlainText() != ""
49 if self.userGroup.isChecked(): 49 if self.userGroup.isChecked():
50 enable = enable and \ 50 enable = (
51 enable and
51 (self.currentUserCheckBox.isChecked() or 52 (self.currentUserCheckBox.isChecked() or
52 self.userEdit.text() != "") 53 self.userEdit.text() != "")
54 )
53 55
54 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable) 56 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)
55 57
56 @pyqtSlot() 58 @pyqtSlot()
57 def on_revisionsEdit_textChanged(self): 59 def on_revisionsEdit_textChanged(self):

eric ide

mercurial