71 elif self.branchButton.isChecked(): |
71 elif self.branchButton.isChecked(): |
72 enabled = enabled and bool(self.branchCombo.currentText()) |
72 enabled = enabled and bool(self.branchCombo.currentText()) |
73 elif self.bookmarkButton.isChecked(): |
73 elif self.bookmarkButton.isChecked(): |
74 enabled = enabled and bool(self.bookmarkCombo.currentText()) |
74 enabled = enabled and bool(self.bookmarkCombo.currentText()) |
75 |
75 |
76 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) |
76 self.buttonBox.button( |
|
77 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) |
77 |
78 |
78 @pyqtSlot(bool) |
79 @pyqtSlot(bool) |
79 def on_defaultButton_toggled(self, checked): |
80 def on_defaultButton_toggled(self, checked): |
80 """ |
81 """ |
81 Private slot to handle changes of the Default select button. |
82 Private slot to handle changes of the Default select button. |