Fix ad_hoc menu for transports. Fixes #2678.

This commit is contained in:
Jean-Marie Traissard 2006-11-19 17:53:04 +00:00
parent 0c5a736d0e
commit 917f7e8db6
1 changed files with 1 additions and 1 deletions

View File

@ -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'))