[Norman] subnodes are correctly browsed now
This commit is contained in:
parent
f0deb4bc32
commit
6ff2bf8c53
|
@ -1758,8 +1758,10 @@ class Connection:
|
||||||
|
|
||||||
def request_agents(self, jid, node):
|
def request_agents(self, jid, node):
|
||||||
if self.connection:
|
if self.connection:
|
||||||
self.to_be_sent.append(common.xmpp.Iq(to = jid, typ = 'get',
|
iq = common.xmpp.Iq(to = jid, typ = 'get',
|
||||||
queryNS = common.xmpp.NS_DISCO_ITEMS))
|
queryNS = common.xmpp.NS_DISCO_ITEMS))
|
||||||
|
if node: iq.setQuerynode(node)
|
||||||
|
self.to_be_sent.append(iq)
|
||||||
|
|
||||||
def request_register_agent_info(self, agent):
|
def request_register_agent_info(self, agent):
|
||||||
if not self.connection:
|
if not self.connection:
|
||||||
|
|
|
@ -2361,6 +2361,7 @@ _('Without a connection, you can not browse available services')).get_response()
|
||||||
def on_refresh_button_clicked(self, widget):
|
def on_refresh_button_clicked(self, widget):
|
||||||
'''When refresh button is clicked: refresh list: clear and rerequest it'''
|
'''When refresh button is clicked: refresh list: clear and rerequest it'''
|
||||||
self.services_treeview.get_model().clear()
|
self.services_treeview.get_model().clear()
|
||||||
|
self.items_asked = []
|
||||||
jid = self.address_comboboxentry.child.get_text().decode('utf-8')
|
jid = self.address_comboboxentry.child.get_text().decode('utf-8')
|
||||||
self.browse(jid)
|
self.browse(jid)
|
||||||
|
|
||||||
|
@ -2369,6 +2370,7 @@ _('Without a connection, you can not browse available services')).get_response()
|
||||||
if self.address_comboboxentry.get_active() != -1:
|
if self.address_comboboxentry.get_active() != -1:
|
||||||
# user selected one of the entries so do auto-visit
|
# user selected one of the entries so do auto-visit
|
||||||
self.services_treeview.get_model().clear()
|
self.services_treeview.get_model().clear()
|
||||||
|
self.items_asked = []
|
||||||
server_address = self.address_comboboxentry.child.get_text().decode('utf-8')
|
server_address = self.address_comboboxentry.child.get_text().decode('utf-8')
|
||||||
self.browse(server_address)
|
self.browse(server_address)
|
||||||
|
|
||||||
|
@ -2468,6 +2470,7 @@ _('Without a connection, you can not browse available services')).get_response()
|
||||||
gajim.config.set('latest_disco_addresses',
|
gajim.config.set('latest_disco_addresses',
|
||||||
' '.join(self.latest_addresses))
|
' '.join(self.latest_addresses))
|
||||||
self.services_treeview.get_model().clear()
|
self.services_treeview.get_model().clear()
|
||||||
|
self.items_asked = []
|
||||||
self.browse(server_address)
|
self.browse(server_address)
|
||||||
self.plugin.save_config()
|
self.plugin.save_config()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue