mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Metadata review dialog: Fix merging of tags not working correctly
This commit is contained in:
parent
c7cf64db75
commit
8206dd2966
@ -562,11 +562,10 @@ class CompareSingle(QWidget):
|
||||
def merge_tags(self):
|
||||
widgets = self.widgets['tags']
|
||||
neww, oldw = widgets[:2]
|
||||
val = oldw.value
|
||||
lval = {icu_lower(x) for x in val}
|
||||
extra = [x for x in neww.value if icu_lower(x) not in lval]
|
||||
lval = {icu_lower(x) for x in neww.value}
|
||||
extra = [x for x in oldw.value if icu_lower(x) not in lval]
|
||||
if extra:
|
||||
neww.value = val + extra
|
||||
neww.value += extra
|
||||
|
||||
def merge_comments(self):
|
||||
widgets = self.widgets['comments']
|
||||
|
Loading…
x
Reference in New Issue
Block a user