36 def __updateUI(self): |
36 def __updateUI(self): |
37 """ |
37 """ |
38 Private slot to update the UI. |
38 Private slot to update the UI. |
39 """ |
39 """ |
40 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( |
40 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled( |
41 self.nameEdit.text() != "" and \ |
41 self.nameEdit.text() != "" and |
42 self.bookmarkCombo.currentText() != "" |
42 self.bookmarkCombo.currentText() != "" |
43 ) |
43 ) |
44 |
44 |
45 @pyqtSlot(str) |
45 @pyqtSlot(str) |
46 def on_nameEdit_textChanged(self, txt): |
46 def on_nameEdit_textChanged(self, txt): |