Author: asterix Date: 2007-09-20 18:32:06 +0200 (Thu, 20 Sep 2007) New Revision: 8842
Modified: branches/gajim_0.11.1/src/roster_window.py Log: allow to execute commands even if there is no resource. XEP don't forbid that. fixes #3453
Modified: branches/gajim_0.11.1/src/roster_window.py =================================================================== --- branches/gajim_0.11.1/src/roster_window.py 2007-09-20 16:30:45 UTC (rev 8841) +++ branches/gajim_0.11.1/src/roster_window.py 2007-09-20 16:32:06 UTC (rev 8842) @@ -1854,15 +1854,8 @@ else: # one resource start_chat_menuitem.connect('activate', self.on_open_chat_window, contact, account) - # we cannot execute commands when the resource is unknown - # TODO: that's true only if the entity is a contact, - # TODO: we need to show this also for transports - if contact.resource: - execute_command_menuitem.connect('activate', - self.on_execute_command, contact, account, contact.resource) - else: - execute_command_menuitem.hide() - execute_command_menuitem.set_no_show_all(True) + execute_command_menuitem.connect('activate', self.on_execute_command, + contact, account, contact.resource)
our_jid_other_resource = None if our_jid: