mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug #1907998: Tag Browser: Rename and Delete appear on composite columns
This commit is contained in:
parent
b4731c552c
commit
1e9473dffd
@ -690,7 +690,7 @@ class TagsView(QTreeView): # {{{
|
|||||||
if tag:
|
if tag:
|
||||||
# If the user right-clicked on an editable item, then offer
|
# If the user right-clicked on an editable item, then offer
|
||||||
# the possibility of renaming that item.
|
# 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
|
# Add the 'rename' items to both interior and leaf nodes
|
||||||
if fm['datatype'] != 'enumeration':
|
if fm['datatype'] != 'enumeration':
|
||||||
if self.model().get_in_vl():
|
if self.model().get_in_vl():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user