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