mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Edit Book: Fix order of checkboxes in filter style information tool is random
This commit is contained in:
parent
f84223da03
commit
e1c1e617bc
@ -923,8 +923,9 @@ class FilterCSS(Dialog): # {{{
|
||||
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…
x
Reference in New Issue
Block a user