Fixes #1907998 [Tag Browser: Rename and Delete appear on composite columns](https://bugs.launchpad.net/calibre/+bug/1907998)
This commit is contained in:
Kovid Goyal 2020-12-15 15:40:02 +05:30
commit 5f113ce9dc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -690,7 +690,7 @@ class TagsView(QTreeView): # {{{
if tag:
# If the user right-clicked on an editable item, then offer
# the possibility of renaming that item.
if tag.is_editable or tag.is_hierarchical:
if fm['datatype'] != 'composite' and (tag.is_editable or tag.is_hierarchical):
# Add the 'rename' items to both interior and leaf nodes
if fm['datatype'] != 'enumeration':
if self.model().get_in_vl():