mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-24 07:36:07 +01:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1932984 [AttributeError on 'Add-subcategory to <main-category>'](https://bugs.launchpad.net/calibre/+bug/1932984)
This commit is contained in:
commit
fafacae005
1 changed files with 3 additions and 0 deletions
|
|
@ -136,6 +136,9 @@ def do_add_subcategory(self, on_category_key, new_category_name=None):
|
|||
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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue