mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1485 ("Stop Job" on download of recipes causes repeated error)
This commit is contained in:
parent
d7b440024b
commit
53e2e7b314
@ -128,7 +128,10 @@ class JobManager(QAbstractTableModel):
|
||||
self.emit(SIGNAL('layoutChanged()'))
|
||||
|
||||
def _status_update(self, job):
|
||||
row = self.jobs.index(job)
|
||||
try:
|
||||
row = self.jobs.index(job)
|
||||
except ValueError: # Job has been stopped
|
||||
return
|
||||
self.emit(SIGNAL('dataChanged(QModelIndex, QModelIndex)'),
|
||||
self.index(row, 0), self.index(row, 3))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user