mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix nasty bug introduced in 0.4.41 that prevents Bulk conversions from running
This commit is contained in:
parent
dc9036a241
commit
6de21f6c3a
@ -327,6 +327,8 @@ class JobManager(QAbstractTableModel):
|
||||
p = str(job.percent_done) + r'%' if job.percent_done > 0 else _('Unavailable')
|
||||
return QVariant(p)
|
||||
if col == 3:
|
||||
if job.start_time is None:
|
||||
return NONE
|
||||
rtime = job.running_time if hasattr(job, 'running_time') else time.time() - job.start_time
|
||||
return QVariant('%dm %ds'%(int(rtime)//60, int(rtime)%60))
|
||||
if role == Qt.DecorationRole and col == 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user