5655: Fix warnings when tags have duplicate names

svn: r19343
This commit is contained in:
Nick Hall 2012-04-16 16:20:10 +00:00
parent c41f9602c5
commit 1a16fe577f

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