From 351f25293cf280ff6f7a4f20240444d3ce1410d4 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Tue, 29 Jan 2013 07:26:38 +0100 Subject: [PATCH] In tag browser, prevent attempting to modify a pseudo-tag created from a composite column --- src/calibre/library/database2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index 754a583f74..d6362f2a76 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -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,