mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Fix bulk convert queueing dialog becoming very long if any of the books have a very long title. Fixes #1076191 (Conversion progress bar outsizes screen)
This commit is contained in:
parent
6365c9adc6
commit
aae48be9f5
@ -196,6 +196,8 @@ class QueueBulk(QProgressDialog):
|
||||
dtitle = unicode(mi.title)
|
||||
except:
|
||||
dtitle = repr(mi.title)
|
||||
if len(dtitle) > 50:
|
||||
dtitle = dtitle[:50].rpartition(' ')[0]+'...'
|
||||
self.setLabelText(_('Queueing ')+dtitle)
|
||||
desc = _('Convert book %(num)d of %(tot)d (%(title)s)') % dict(
|
||||
num=self.i, tot=len(self.book_ids), title=dtitle)
|
||||
|
Loading…
x
Reference in New Issue
Block a user