Select the row when scrolling to it

This commit is contained in:
Charles Haley 2011-01-12 17:28:12 +00:00
parent 7e87812027
commit 2fca198781

View File

@ -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):