mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Set the focus to the table whenever it is rebuilt. Saves a lot of tabbing.
This commit is contained in:
parent
1474957e99
commit
07ceef1927
@ -326,6 +326,7 @@ class EditAuthorsDialog(QDialog, Ui_EditAuthorsDialog):
|
||||
self.find_box.setFocus()
|
||||
self.start_find_pos = -1
|
||||
self.table.blockSignals(False)
|
||||
self.table.setFocus(Qt.FocusReason.OtherFocusReason)
|
||||
|
||||
def row_height_changed(self, row, old, new):
|
||||
self.table.verticalHeader().blockSignals(True)
|
||||
|
@ -779,6 +779,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
|
||||
self.table.setCurrentCell(0, 0)
|
||||
self.search_box.setFocus()
|
||||
self.start_find_pos = -1
|
||||
self.table.setFocus(Qt.FocusReason.OtherFocusReason)
|
||||
|
||||
def not_found_label_timer_event(self):
|
||||
self.not_found_label.setVisible(False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user