mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 23:33:25 +02:00
Fix nasty bug introduced in 0.4.41 that prevents Bulk conversions from running
This commit is contained in:
parent
dc9036a241
commit
6de21f6c3a
1 changed files with 3 additions and 1 deletions
|
|
@ -327,6 +327,8 @@ def data(self, index, role):
|
|||
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:
|
||||
|
|
@ -377,4 +379,4 @@ def __init__(self, parent, job):
|
|||
|
||||
self.log.setHtml(txt)
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue