diff --git a/src/calibre/gui2/complete2.py b/src/calibre/gui2/complete2.py index 850733f7ae..945bf5d707 100644 --- a/src/calibre/gui2/complete2.py +++ b/src/calibre/gui2/complete2.py @@ -515,15 +515,11 @@ class EditWithComplete(EnComboBox): def text(self): return self.lineEdit().text() - - @pyqtProperty(str) - def currentText(self): - return self.lineEdit().text() - - @currentText.setter - def currentText(self, text): + def set_current_text(self, text): self.setText(text) - self.lineEdit().selectAll() + self.selectAll() + + current_text = pyqtProperty(str, fget=text, fset=set_current_text, user=True) def selectAll(self): self.lineEdit().selectAll()