mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Select the row when scrolling to it
This commit is contained in:
parent
7e87812027
commit
2fca198781
@ -683,7 +683,7 @@ class BooksView(QTableView): # {{{
|
||||
def search_proxy(self, txt):
|
||||
self._model.search(txt)
|
||||
if self._model.lowest_row_matching:
|
||||
self.scroll_to_row(self._model.lowest_row_matching)
|
||||
self.select_rows([self._model.lowest_row_matching], using_ids=False)
|
||||
self.setFocus(Qt.OtherFocusReason)
|
||||
|
||||
def connect_to_search_box(self, sb, search_done):
|
||||
|
Loading…
x
Reference in New Issue
Block a user