mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Manage tags dialog: When searching for a tag also search the "Was" column to see if the original tag name matches. Fixes #1836813 [[Enhancement]Tag Manager edits lost with Find](https://bugs.launchpad.net/calibre/+bug/1836813)
This commit is contained in:
parent
449240222b
commit
ed06633253
@ -242,7 +242,11 @@ class TagListEditor(QDialog, Ui_TagListEditor):
|
||||
self.fill_in_table(None, None)
|
||||
result = []
|
||||
for k in self.ordered_tags:
|
||||
if search_for in icu_lower(unicode_type(self.all_tags[k]['cur_name'])):
|
||||
tag = self.all_tags[k]
|
||||
if (
|
||||
search_for in icu_lower(unicode_type(tag['cur_name'])) or
|
||||
search_for in icu_lower(unicode_type(self.original_names.get(tag['key'], '')))
|
||||
):
|
||||
result.append(k)
|
||||
self.fill_in_table(result, None)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user