mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 02:43:12 +02:00
Fix #2121 (Remove before Add when editing tags in bulk)
This commit is contained in:
parent
3c5d1b69c5
commit
aacd082e54
1 changed files with 4 additions and 4 deletions
|
|
@ -70,14 +70,14 @@ def sync(self):
|
|||
pub = qstring_to_unicode(self.publisher.text())
|
||||
if pub:
|
||||
self.db.set_publisher(id, pub, notify=False)
|
||||
tags = qstring_to_unicode(self.tags.text()).strip()
|
||||
if tags:
|
||||
tags = map(lambda x: x.strip(), tags.split(','))
|
||||
self.db.set_tags(id, tags, append=True, notify=False)
|
||||
remove_tags = qstring_to_unicode(self.remove_tags.text()).strip()
|
||||
if remove_tags:
|
||||
remove_tags = [i.strip() for i in remove_tags.split(',')]
|
||||
self.db.unapply_tags(id, remove_tags, notify=False)
|
||||
tags = qstring_to_unicode(self.tags.text()).strip()
|
||||
if tags:
|
||||
tags = map(lambda x: x.strip(), tags.split(','))
|
||||
self.db.set_tags(id, tags, append=True, notify=False)
|
||||
if self.write_series:
|
||||
self.db.set_series(id, qstring_to_unicode(self.series.currentText()), notify=False)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue