Tag Browser: When renaming an item that is currently being searched for, remove the search indicator, as the search will no longer match the renamed item. Fixes #1374624 [Tag Browser: Behaviour after "Rename"](https://bugs.launchpad.net/calibre/+bug/1374624)

This commit is contained in:
Kovid Goyal 2014-09-27 17:13:57 +05:30
parent 7a75352d47
commit 2b415d4ded

View File

@ -1041,6 +1041,7 @@ class TagsModel(QAbstractItemModel): # {{{
label=self.db.field_metadata[key]['label'])
self.tag_item_renamed.emit()
item.tag.name = val
item.tag.state = TAG_SEARCH_STATES['clear']
self.rename_item_in_all_user_categories(name, key, val)
self.refresh_required.emit()
return True