5655: Fix warnings when tags have duplicate names

svn: r19344
This commit is contained in:
Nick Hall 2012-04-16 16:21:48 +00:00
parent 11f65c4625
commit 42071b5050

View File

@ -210,9 +210,8 @@ class Tags(DbGUIElement):
tag_menu += '<menuitem action="OrganizeTags"/>' tag_menu += '<menuitem action="OrganizeTags"/>'
tag_menu += '<separator/>' tag_menu += '<separator/>'
for tag_name, handle in self.__tag_list: for tag_name, handle in self.__tag_list:
tag_menu += '<menuitem action="TAG_%s"/>' % escape(tag_name, tag_menu += '<menuitem action="TAG_%s"/>' % handle
{'"':'&quot;'}) actions.append(('TAG_%s' % handle, None, tag_name, None, None,
actions.append(('TAG_%s' % tag_name, None, tag_name, None, None,
make_callback(self.tag_selected_rows, handle))) make_callback(self.tag_selected_rows, handle)))
self.tag_ui = TAG_1 + tag_menu + TAG_2 + tag_menu + TAG_3 self.tag_ui = TAG_1 + tag_menu + TAG_2 + tag_menu + TAG_3