Skip to content
Snippets Groups Projects
Commit 1a46caac authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

make "invite to" menuitem insensitive when account if offline. Fixes #7082

parent af10f16f
No related branches found
No related tags found
No related merge requests found
...@@ -386,6 +386,9 @@ control=None, gc_contact=None, is_anonymous=True): ...@@ -386,6 +386,9 @@ control=None, gc_contact=None, is_anonymous=True):
else: else:
build_invite_submenu(invite_menuitem, [(contact, account)]) build_invite_submenu(invite_menuitem, [(contact, account)])
if gajim.account_is_disconnected(account):
invite_menuitem.set_sensitive(False)
# One or several resource, we do the same for send_custom_status # One or several resource, we do the same for send_custom_status
status_menuitems = gtk.Menu() status_menuitems = gtk.Menu()
send_custom_status_menuitem.set_submenu(status_menuitems) send_custom_status_menuitem.set_submenu(status_menuitems)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment