mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2021452 [Can't Open Metadata Edit Window](https://bugs.launchpad.net/calibre/+bug/2021452)
This commit is contained in:
parent
5519a2264c
commit
c05013c260
@ -515,15 +515,11 @@ class EditWithComplete(EnComboBox):
|
|||||||
def text(self):
|
def text(self):
|
||||||
return self.lineEdit().text()
|
return self.lineEdit().text()
|
||||||
|
|
||||||
|
def set_current_text(self, text):
|
||||||
@pyqtProperty(str)
|
|
||||||
def currentText(self):
|
|
||||||
return self.lineEdit().text()
|
|
||||||
|
|
||||||
@currentText.setter
|
|
||||||
def currentText(self, text):
|
|
||||||
self.setText(text)
|
self.setText(text)
|
||||||
self.lineEdit().selectAll()
|
self.selectAll()
|
||||||
|
|
||||||
|
current_text = pyqtProperty(str, fget=text, fset=set_current_text, user=True)
|
||||||
|
|
||||||
def selectAll(self):
|
def selectAll(self):
|
||||||
self.lineEdit().selectAll()
|
self.lineEdit().selectAll()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user