mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #799393 (Jobs window has no selection when first opened)
This commit is contained in:
parent
1994faa7b2
commit
56c5979b72
@ -432,6 +432,10 @@ class JobsDialog(QDialog, Ui_JobsDialog):
|
||||
self.jobs_view.horizontalHeader().restoreState(QByteArray(state))
|
||||
except:
|
||||
pass
|
||||
idx = self.jobs_view.model().index(0, 0)
|
||||
if idx.isValid():
|
||||
sm = self.jobs_view.selectionModel()
|
||||
sm.select(idx, sm.ClearAndSelect|sm.Rows)
|
||||
|
||||
def save_state(self):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user