Tag Browser: Fix the Manage X items in the right click menu

This commit is contained in:
Kovid Goyal 2011-01-02 11:01:56 -07:00
parent 9f7bdcdc0b
commit 21daa3c72a

View File

@ -216,6 +216,8 @@ class TagsView(QTreeView): # {{{
item = item.parent
if item.type == TagTreeItem.CATEGORY:
while item.parent != self._model.root_item:
item = item.parent
category = unicode(item.name.toString())
key = item.category_key
# Verify that we are working with a field that we know something about