mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
After a search, always select the first result row
This commit is contained in:
parent
039d4653b0
commit
1a0d182067
@ -86,6 +86,10 @@ class LibraryViewMixin(object): # {{{
|
||||
if view is self.current_view():
|
||||
self.search.search_done(ok)
|
||||
self.set_number_of_books_shown()
|
||||
if ok:
|
||||
v = self.current_view()
|
||||
if hasattr(v, 'set_current_row'):
|
||||
v.set_current_row(0)
|
||||
|
||||
# }}}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user