mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 13:23:00 +02:00
Fix bug in applying changes to the downloaded fields in the metadata sources preferences
This commit is contained in:
parent
ff3c857c80
commit
e60506d355
1 changed files with 5 additions and 2 deletions
|
|
@ -209,8 +209,11 @@ def setData(self, index, val, role):
|
|||
return ret
|
||||
|
||||
def commit(self):
|
||||
val = [k for k, v in self.overrides.iteritems() if v == Qt.Unchecked]
|
||||
msprefs['ignore_fields'] = val
|
||||
ignored_fields = set([x for x in msprefs['ignore_fields'] if x not in
|
||||
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…
Reference in a new issue