bugfix
This commit is contained in:
parent
dc4221660b
commit
d5261a69d6
|
@ -1623,7 +1623,6 @@ class Service_discovery_window:
|
|||
self.agent_infos = {}
|
||||
if gajim.connections[account].connected < 2:
|
||||
dialogs.Error_dialog(_('You must be connected to browse services'))
|
||||
del self.plugin.windows[self.account]['disco']
|
||||
return
|
||||
xml = gtk.glade.XML(GTKGUI_GLADE, 'service_discovery_window', APP)
|
||||
self.window = xml.get_widget('service_discovery_window')
|
||||
|
@ -1838,10 +1837,11 @@ class Service_discovery_window:
|
|||
return
|
||||
service = model.get_value(iter, 1)
|
||||
infos = gajim.connections[self.account].ask_register_agent_info(service)
|
||||
if not infos.has_key('instructions'):
|
||||
dialogs.Error_dialog(_('error contacting %s') % service)
|
||||
if infos.has_key('instructions'):
|
||||
Service_registration_window(service, infos, self.plugin, self.account)
|
||||
else:
|
||||
Service_registration_window(service, infos, self.plugin, self.account)
|
||||
dialogs.Error_dialog(_('error contacting %s') % service)
|
||||
|
||||
self.window.destroy()
|
||||
|
||||
def on_services_treeview_cursor_changed(self, widget):
|
||||
|
|
|
@ -462,8 +462,6 @@ class Join_groupchat_window:
|
|||
self.account = account
|
||||
if gajim.connections[account].connected < 2:
|
||||
Error_dialog(_('You must be connected to join a groupchat'))
|
||||
# remove us from open windows
|
||||
del self.plugin.windows[self.account]['join_gc']
|
||||
return
|
||||
self.xml = gtk.glade.XML(GTKGUI_GLADE, 'join_groupchat_window', APP)
|
||||
self.window = self.xml.get_widget('join_groupchat_window')
|
||||
|
|
Loading…
Reference in New Issue