mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 01:03:26 +02:00
Enhancement #1886219 bis:set focus to cell only if a cell is preselected.
This commit is contained in:
parent
74a8e17f33
commit
5192ba8c22
1 changed files with 2 additions and 1 deletions
|
|
@ -341,11 +341,12 @@ def fill_in_table(self, tags, tag_to_match, ttm_is_first_letter):
|
|||
|
||||
if select_item is not None:
|
||||
self.table.setCurrentItem(select_item)
|
||||
self.table.setFocus(True)
|
||||
self.start_find_pos = select_item.row()
|
||||
else:
|
||||
self.table.setCurrentCell(0, 0)
|
||||
self.search_box.setFocus()
|
||||
self.start_find_pos = -1
|
||||
self.table.setFocus(True)
|
||||
self.table.blockSignals(False)
|
||||
|
||||
def not_found_label_timer_event(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue