mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug that prevented the changing of case of authors/series and publishers
This commit is contained in:
parent
2724258397
commit
0450dcf435
@ -624,12 +624,13 @@ class EnComboBox(QComboBox):
|
||||
def __init__(self, *args):
|
||||
QComboBox.__init__(self, *args)
|
||||
self.setLineEdit(EnLineEdit(self))
|
||||
self.setAutoCompletionCaseSensitivity(Qt.CaseSensitive)
|
||||
|
||||
def text(self):
|
||||
return unicode(self.currentText())
|
||||
|
||||
def setText(self, text):
|
||||
idx = self.findText(text, Qt.MatchFixedString)
|
||||
idx = self.findText(text, Qt.MatchFixedString|Qt.MatchCaseSensitive)
|
||||
if idx == -1:
|
||||
self.insertItem(0, text)
|
||||
idx = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user