Fix ad_hoc menu for transports. Fixes #2678.
This commit is contained in:
parent
0c5a736d0e
commit
917f7e8db6
|
@ -2076,7 +2076,7 @@ class RosterWindow:
|
|||
menu.append(item)
|
||||
item.connect('activate', self.on_execute_command, contact, account,
|
||||
contact.resource)
|
||||
if not is_connected:
|
||||
if gajim.account_is_disconnected(account):
|
||||
item.set_sensitive(False)
|
||||
|
||||
item = gtk.ImageMenuItem(_('_Rename'))
|
||||
|
|
Loading…
Reference in New Issue