mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:53:29 +02:00
Edit Book: Fix order of checkboxes in filter style information tool is random
This commit is contained in:
parent
f84223da03
commit
e1c1e617bc
1 changed files with 3 additions and 2 deletions
|
|
@ -923,8 +923,9 @@ def setup_ui(self):
|
|||
l.addRow(QLabel(_('Select what style information you want completely removed:')))
|
||||
self.h = h = QHBoxLayout()
|
||||
|
||||
for name, text in {
|
||||
'fonts':_('&Fonts'), 'margins':_('&Margins'), 'padding':_('&Padding'), 'floats':_('Flo&ats'), 'colors':_('&Colors')}.iteritems():
|
||||
for name, text in (
|
||||
('fonts', _('&Fonts')), ('margins', _('&Margins')), ('padding', _('&Padding')), ('floats', _('Flo&ats')), ('colors', _('&Colors')),
|
||||
):
|
||||
c = QCheckBox(text)
|
||||
setattr(self, 'opt_' + name, c)
|
||||
h.addWidget(c)
|
||||
|
|
|
|||
Loading…
Reference in a new issue