Fix regression that caused completion in authors/series/tags fields on OS X to return extra text. Fixes #8963 (In the Edit Dialog, PIcking from the Author's drop down list is broken)

This commit is contained in:
Kovid Goyal 2011-02-13 12:52:39 -07:00
parent c6aaa3b7b6
commit 46a35f5d89

View File

@ -158,6 +158,8 @@ class MultiCompleteComboBox(EnComboBox):
# item that matches case insensitively
c = self.lineEdit().completer()
c.setCaseSensitivity(Qt.CaseSensitive)
self.dummy_model = CompleteModel(self)
c.setModel(self.dummy_model)
def update_items_cache(self, complete_items):
self.lineEdit().update_items_cache(complete_items)