mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix bug in applying changes to the downloaded fields in the metadata sources preferences
This commit is contained in:
parent
ff3c857c80
commit
e60506d355
@ -209,8 +209,11 @@ class FieldsModel(QAbstractListModel): # {{{
|
|||||||
return ret
|
return ret
|
||||||
|
|
||||||
def commit(self):
|
def commit(self):
|
||||||
val = [k for k, v in self.overrides.iteritems() if v == Qt.Unchecked]
|
ignored_fields = set([x for x in msprefs['ignore_fields'] if x not in
|
||||||
msprefs['ignore_fields'] = val
|
self.overrides])
|
||||||
|
changed = set([k for k, v in self.overrides.iteritems() if v ==
|
||||||
|
Qt.Unchecked])
|
||||||
|
msprefs['ignore_fields'] = list(ignored_fields.union(changed))
|
||||||
|
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user