mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04: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
@ -948,6 +948,7 @@ class GridView(QListView):
|
||||
|
||||
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…
x
Reference in New Issue
Block a user