Commit f309d2b1 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 97a53a65
......@@ -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'))
list_online, show_bookmarked=show_bookmarked)
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