61 elif self.tagButton.isChecked(): |
61 elif self.tagButton.isChecked(): |
62 enabled = enabled and self.tagCombo.currentText() != "" |
62 enabled = enabled and self.tagCombo.currentText() != "" |
63 elif self.branchButton.isChecked(): |
63 elif self.branchButton.isChecked(): |
64 enabled = enabled and self.branchCombo.currentText() != "" |
64 enabled = enabled and self.branchCombo.currentText() != "" |
65 |
65 |
66 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) |
66 self.buttonBox.button( |
|
67 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) |
67 |
68 |
68 @pyqtSlot(bool) |
69 @pyqtSlot(bool) |
69 def on_numberButton_toggled(self, checked): |
70 def on_numberButton_toggled(self, checked): |
70 """ |
71 """ |
71 Private slot to handle changes of the Number select button. |
72 Private slot to handle changes of the Number select button. |