Make the new languages field not editable in the tag browser

This commit is contained in:
Charles Haley 2011-09-28 12:04:26 +02:00
parent c4404f52c8
commit d086acf076
2 changed files with 3 additions and 3 deletions

View File

@ -63,9 +63,9 @@ class TagTreeItem(object): # {{{
self.category_key = category_key
self.temporary = temporary
self.tag = Tag(data, category=category_key,
is_editable=category_key not in ['news', 'search', 'identifiers'],
is_editable=category_key not in
['news', 'search', 'identifiers', 'languages'],
is_searchable=category_key not in ['search'])
elif self.type == self.TAG:
self.icon_state_map[0] = QVariant(data.icon)
self.tag = data

View File

@ -1740,7 +1740,7 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
use_sort_as_name = True
else:
use_sort_as_name = False
is_editable = category not in ['news', 'rating']
is_editable = category not in ['news', 'rating', 'languages']
categories[category] = [tag_class(formatter(r.n), count=r.c, id=r.id,
avg=avgr(r), sort=r.s, icon=icon,
tooltip=tooltip, category=category,