Fix bug that prevented the changing of case of authors/series and publishers

This commit is contained in:
Kovid Goyal 2010-01-03 11:31:48 -07:00
parent 2724258397
commit 0450dcf435

View File

@ -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