Enhancement #1886219 bis:set focus to cell only if a cell is preselected.

This commit is contained in:
Charles Haley 2020-07-04 09:34:34 +01:00
parent 74a8e17f33
commit 5192ba8c22

View File

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