In tag browser, prevent attempting to modify a pseudo-tag created from a composite column

This commit is contained in:
Charles Haley 2013-01-29 07:26:38 +01:00
parent 8f08137735
commit 351f25293c

View File

@ -1932,7 +1932,8 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
use_sort_as_name = True use_sort_as_name = True
else: else:
use_sort_as_name = False 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, categories[category] = [tag_class(formatter(r.n), count=r.c, id=r.id,
avg=avgr(r), sort=r.s, icon=icon, avg=avgr(r), sort=r.s, icon=icon,
category=category, category=category,