ask to re-build actions menu when needed. Fixes #1676

This commit is contained in:
Yann Leboulanger 2006-03-18 09:05:46 +00:00
parent 19ad69e3dd
commit 088d8dbac9
2 changed files with 2 additions and 2 deletions

View File

@ -2308,7 +2308,7 @@ _('Please be sure to fill out server and room fields or remove this bookmark.'))
gajim.connections[account_unicode].bookmarks.append(bmdict) gajim.connections[account_unicode].bookmarks.append(bmdict)
gajim.connections[account_unicode].store_bookmarks() gajim.connections[account_unicode].store_bookmarks()
gajim.interface.roster.make_menu() gajim.interface.roster.actions_menu_needs_rebuild = True
self.window.destroy() self.window.destroy()
def on_cancel_button_clicked(self, widget): def on_cancel_button_clicked(self, widget):

View File

@ -1183,7 +1183,7 @@ class GroupchatControl(ChatControlBase):
gajim.connections[self.account].bookmarks.append(bm) gajim.connections[self.account].bookmarks.append(bm)
gajim.connections[self.account].store_bookmarks() gajim.connections[self.account].store_bookmarks()
gajim.interface.roster.make_menu() gajim.interface.roster.actions_menu_needs_rebuild = True
dialogs.InformationDialog( dialogs.InformationDialog(
_('Bookmark has been added successfully'), _('Bookmark has been added successfully'),