mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
81d0cd6d0f
commit
66e2520330
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user