Commit b7aa4aa9 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

InviteMenu: Create menuitem before checking for Transports group

Otherwise modifying this menuitem later will fail (UnboundLocalError)
parent 2de6911d
......@@ -4849,10 +4849,9 @@ class RosterWindow:
self.on_send_single_message_menuitem_activate, account, list_)
# Invite to
invite_menuitem = Gtk.MenuItem.new_with_mnemonic(
_('In_vite to'))
if _('Transports') not in groups:
invite_menuitem = Gtk.MenuItem.new_with_mnemonic(
_('In_vite to'))
gui_menu_builder.build_invite_submenu(invite_menuitem,
list_online, show_bookmarked=show_bookmarked)
menu.append(invite_menuitem)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment