primitivus: fixed actionResult call (fix gateways management)
This commit is contained in:
parent
c2f0382d93
commit
ced79bca8d
1 changed files with 11 additions and 8 deletions
|
|
@ -52,9 +52,9 @@ class GatewaysManager(urwid.WidgetWrap, QuickGatewaysManager):
|
|||
popup = sat_widgets.Alert(_("Error"), _("You must enter an external server JID"), ok_cb=self.host.removePopUp)
|
||||
self.host.showPopUp(popup)
|
||||
return
|
||||
id = self.host.bridge.findGateways(server, self.host.profile)
|
||||
self.host.current_action_ids.add(id)
|
||||
self.host.current_action_ids_cb[id] = self.host.onGatewaysFound
|
||||
action_id = self.host.bridge.findGateways(server, self.host.profile)
|
||||
self.host.current_action_ids.add(action_id)
|
||||
self.host.current_action_ids_cb[action_id] = self.host.onGatewaysFound
|
||||
self.host.removeWindow()
|
||||
|
||||
def addGateway(self, widget_list, gateway, param):
|
||||
|
|
@ -78,11 +78,11 @@ class GatewaysManager(urwid.WidgetWrap, QuickGatewaysManager):
|
|||
def onRegister(self, button):
|
||||
"""Called when register button is clicked"""
|
||||
gateway_jid = button.gateway_jid
|
||||
id = self.host.bridge.in_band_register(gateway_jid, self.host.profile)
|
||||
self.host.current_action_ids.add(id)
|
||||
action_id = self.host.bridge.in_band_register(gateway_jid, self.host.profile)
|
||||
self.host.current_action_ids.add(action_id)
|
||||
|
||||
def onUnregister(self, button):
|
||||
"""Called when unregister button is clicked"""
|
||||
gateway_jid = button.gateway_jid
|
||||
id = self.host.bridge.gatewayRegister("CANCEL",gateway_jid, None, self.host.profile)
|
||||
self.host.current_action_ids.add(id)
|
||||
action_id = self.host.bridge.gatewayRegister("CANCEL",gateway_jid, None, self.host.profile)
|
||||
self.host.current_action_ids.add(action_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue