mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
In tag browser, prevent attempting to modify a pseudo-tag created from a composite column
This commit is contained in:
parent
8f08137735
commit
351f25293c
@ -1932,7 +1932,8 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
||||
use_sort_as_name = True
|
||||
else:
|
||||
use_sort_as_name = False
|
||||
is_editable = category not in ['news', 'rating', 'languages']
|
||||
is_editable = (category not in ['news', 'rating', 'languages'] and
|
||||
datatype != "composite")
|
||||
categories[category] = [tag_class(formatter(r.n), count=r.c, id=r.id,
|
||||
avg=avgr(r), sort=r.s, icon=icon,
|
||||
category=category,
|
||||
|
Loading…
x
Reference in New Issue
Block a user