mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-26 04:03:31 +01:00
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:
parent
7a75352d47
commit
2b415d4ded
1 changed files with 1 additions and 0 deletions
|
|
@ -1041,6 +1041,7 @@ def setData(self, index, value, role=Qt.EditRole):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue