After a search, always select the first result row

This commit is contained in:
Kovid Goyal 2010-12-01 12:19:32 -07:00
parent 039d4653b0
commit 1a0d182067

View File

@ -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)
# }}}