mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #1907998 [Tag Browser: Rename and Delete appear on composite columns](https://bugs.launchpad.net/calibre/+bug/1907998)
This commit is contained in:
commit
5f113ce9dc
@ -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