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:
Kovid Goyal 2019-07-18 08:57:03 +05:30
parent 449240222b
commit ed06633253
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)