mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Enhancement #1886219 bis:set focus to cell only if a cell is preselected.
This commit is contained in:
parent
74a8e17f33
commit
5192ba8c22
@ -341,11 +341,12 @@ class TagListEditor(QDialog, Ui_TagListEditor):
|
||||
|
||||
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…
x
Reference in New Issue
Block a user