Changeset 8842 for branches/gajim_0.11.1

Show
Ignore:
Timestamp:
09/20/07 18:32:06 (13 months ago)
Author:
asterix
Message:

allow to execute commands even if there is no resource. XEP don't forbid that. fixes #3453

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/roster_window.py

    r8739 r8842  
    18551855                        start_chat_menuitem.connect('activate', 
    18561856                                self.on_open_chat_window, contact, account) 
    1857                         # we cannot execute commands when the resource is unknown 
    1858                         # TODO: that's true only if the entity is a contact, 
    1859                         # TODO: we need to show this also for transports 
    1860                         if contact.resource: 
    1861                                 execute_command_menuitem.connect('activate', 
    1862                                         self.on_execute_command, contact, account, contact.resource) 
    1863                         else: 
    1864                                 execute_command_menuitem.hide() 
    1865                                 execute_command_menuitem.set_no_show_all(True) 
     1857                        execute_command_menuitem.connect('activate', self.on_execute_command, 
     1858                                contact, account, contact.resource) 
    18661859 
    18671860                        our_jid_other_resource = None