Fixes #1932984 [AttributeError on 'Add-subcategory to <main-category>'](https://bugs.launchpad.net/calibre/+bug/1932984)
This commit is contained in:
Kovid Goyal 2021-06-19 13:59:30 +05:30
commit fafacae005
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -136,6 +136,9 @@ class TagBrowserMixin(object): # {{{
self.tags_view.show_item_at_index(idx)
# Open the editor on the new item to rename it
if new_category_name is None:
item = m.get_node(idx)
item.use_vl = False
item.ignore_vl = True
self.tags_view.edit(idx)
def do_edit_user_categories(self, on_category=None):