Edit book: Fix a regression in the previous release that caused the completion popups used in the search panel to not render multiple entries correctly.

This commit is contained in:
Kovid Goyal 2020-10-20 08:44:10 +05:30
parent 276c26ff26
commit eed32b595e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -97,6 +97,7 @@ class HistoryBox(HistoryComboBox):
self.clear_msg = clear_msg self.clear_msg = clear_msg
self.ignore_snip_expansion = False self.ignore_snip_expansion = False
self.lineEdit().setClearButtonEnabled(True) self.lineEdit().setClearButtonEnabled(True)
self.set_uniform_item_sizes(False)
def event(self, ev): def event(self, ev):
if ev.type() in (ev.ShortcutOverride, ev.KeyPress) and ev.key() == KEY and ev.modifiers() & MODIFIER: if ev.type() in (ev.ShortcutOverride, ev.KeyPress) and ev.key() == KEY and ev.modifiers() & MODIFIER: