59 """ |
59 """ |
60 enabled = ( |
60 enabled = ( |
61 bool(self.hostEdit.text()) and |
61 bool(self.hostEdit.text()) and |
62 self.minimumProtocolComboBox.currentIndex() > 0 |
62 self.minimumProtocolComboBox.currentIndex() > 0 |
63 ) |
63 ) |
64 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enabled) |
64 self.buttonBox.button( |
|
65 QDialogButtonBox.StandardButton.Ok).setEnabled(enabled) |
65 |
66 |
66 @pyqtSlot(str) |
67 @pyqtSlot(str) |
67 def on_hostEdit_textChanged(self, txt): |
68 def on_hostEdit_textChanged(self, txt): |
68 """ |
69 """ |
69 Private slot to handle changes of the host edit. |
70 Private slot to handle changes of the host edit. |