From 0450dcf435f3c33a21ea3461b22868a3ace89f7f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 3 Jan 2010 11:31:48 -0700 Subject: [PATCH] Fix bug that prevented the changing of case of authors/series and publishers --- src/calibre/gui2/widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/widgets.py b/src/calibre/gui2/widgets.py index cce594d557..e276d2dcb2 100644 --- a/src/calibre/gui2/widgets.py +++ b/src/calibre/gui2/widgets.py @@ -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