Metadata review dialog: Fix merging of tags not working correctly

This commit is contained in:
Kovid Goyal 2025-04-20 09:05:07 +05:30
parent c7cf64db75
commit 8206dd2966
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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']