mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 05:42:59 +02: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
1 changed files with 2 additions and 0 deletions
|
|
@ -196,6 +196,8 @@ def do_book(self):
|
|||
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…
Reference in a new issue