This commit is contained in:
Kovid Goyal 2014-04-24 22:27:38 +05:30
parent 0e721e1604
commit 0bd81146d8

View File

@ -396,7 +396,7 @@ class TagsView(QTreeView): # {{{
return
def show_context_menu(self, point):
def display_name( tag):
def display_name(tag):
if tag.category == 'search':
n = tag.name
if len(n) > 45:
@ -486,7 +486,7 @@ class TagsView(QTreeView): # {{{
dict(item=display_name(tag), cat=item.py_name),
partial(self.context_menu_handler,
action='delete_item_from_user_category',
key = key, index = tag_item))
key=key, index=tag_item))
if tag.is_searchable:
# Add the search for value items. All leaf nodes are searchable
self.context_menu.addAction(self.search_icon,
@ -582,7 +582,6 @@ class TagsView(QTreeView): # {{{
self.context_menu.addAction(_('Show all categories'),
partial(self.context_menu_handler, action='defaults'))
m = self.context_menu.addMenu(_('Change sub-categorization scheme'))
da = m.addAction(_('Disable'),
partial(self.context_menu_handler, action='categorization', category='disable'))