Set focus on jobs_view table.

On clicking "Show jobs detail". This prevents the job details dialog not being opened as the currentIndex is set to -1.
This commit is contained in:
Richard Midwinter 2024-11-21 14:04:20 +00:00
parent 81d0cd6d0f
commit 66e2520330

View File

@ -686,6 +686,7 @@ class JobsDialog(QDialog, Ui_JobsDialog):
d.timer.stop() d.timer.stop()
def show_details(self, *args): def show_details(self, *args):
self.jobs_view.setFocus()
index = self.jobs_view.currentIndex() index = self.jobs_view.currentIndex()
if index.isValid(): if index.isValid():
self.show_job_details(index) self.show_job_details(index)