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

This commit is contained in:
Yann Leboulanger 2012-07-15 22:33:33 +02:00
parent af10f16f01
commit 1a46caac45
1 changed files with 3 additions and 0 deletions

View File

@ -386,6 +386,9 @@ control=None, gc_contact=None, is_anonymous=True):
else:
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
status_menuitems = gtk.Menu()
send_custom_status_menuitem.set_submenu(status_menuitems)