mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 03:04:42 +02:00
Fix keyboard focus not going to cover grid after doing a search. Fixes #1369160 [post entering a search focus is on an element of the search result in default mode but on the search box in cover grid mode](https://bugs.launchpad.net/calibre/+bug/1369160)
This commit is contained in:
parent
4d2a5796f8
commit
3004603cd4
1 changed files with 1 additions and 0 deletions
|
|
@ -948,6 +948,7 @@ def current_book_state(self):
|
|||
|
||||
def restore_current_book_state(self, state):
|
||||
book_id = state
|
||||
self.setFocus(Qt.OtherFocusReason)
|
||||
try:
|
||||
row = self.model().db.data.id_to_index(book_id)
|
||||
except (IndexError, ValueError, KeyError, TypeError, AttributeError):
|
||||
|
|
|
|||
Loading…
Reference in a new issue