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): |