mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -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))
|
self.jobs_view.horizontalHeader().restoreState(QByteArray(state))
|
||||||
except:
|
except:
|
||||||
pass
|
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):
|
def save_state(self):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user