From a05dfa8d90c338bbba5808cdb9dda4fe6b546300 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 20 Dec 2011 15:36:45 +0530 Subject: [PATCH] Fix bottom most shortcuts in keyboard shortcuts for viewer not editable --- src/calibre/gui2/shortcuts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/shortcuts.py b/src/calibre/gui2/shortcuts.py index 5cdaf2da8a..a245db9f03 100644 --- a/src/calibre/gui2/shortcuts.py +++ b/src/calibre/gui2/shortcuts.py @@ -260,11 +260,11 @@ class ShortcutConfig(QWidget): self.view.setModel(model) self.delegate = Delegate() self.view.setItemDelegate(self.delegate) - self.delegate.sizeHintChanged.connect(self.scrollTo) + self.delegate.sizeHintChanged.connect(self.scrollTo, + type=Qt.QueuedConnection) def scrollTo(self, index): - self.view.scrollTo(index) - + self.view.scrollTo(index, self.view.EnsureVisible) @property def is_editing(self):