some bugfix when modifying account
This commit is contained in:
parent
5e47ab69ed
commit
27c5cd358e
2 changed files with 20 additions and 23 deletions
|
@ -323,12 +323,11 @@ class GajimCore:
|
|||
con.disconnect()
|
||||
self.hub.sendPlugin('STATUS', ev[1], 'offline')
|
||||
elif ev[2][0] != 'offline' and self.connected[ev[1]] == 1:
|
||||
p = common.jabber.Presence()
|
||||
p.setShow(ev[2][0])
|
||||
p.setStatus(ev[2][1])
|
||||
type = 'available'
|
||||
if ev[2][0] == 'invisible':
|
||||
p.setType('invisible')
|
||||
con.send(p)
|
||||
type = 'invisible'
|
||||
prio = str(self.cfgParser.tab[ev[1]]['priority'])
|
||||
con.sendPresence(type, prio, ev[2][0], ev[2][1])
|
||||
self.hub.sendPlugin('STATUS', ev[1], ev[2][0])
|
||||
#('MSG', account, (jid, msg))
|
||||
elif ev[0] == 'MSG':
|
||||
|
|
|
@ -361,9 +361,8 @@ class accountPreference_Window:
|
|||
if infos.has_key('proxyhost'):
|
||||
self.xml.get_widget("entry_proxyhost").set_text(infos['proxyhost'])
|
||||
if infos.has_key('proxyport'):
|
||||
# self.xml.get_widget("entry_proxyport").set_text('%i'%\
|
||||
self.xml.get_widget("entry_proxyport").set_text(\
|
||||
infos['proxyport'])
|
||||
self.xml.get_widget("entry_proxyport").set_text(str(\
|
||||
infos['proxyport']))
|
||||
|
||||
def on_save_clicked(self, widget):
|
||||
"""When save button is clicked : Save informations in config file"""
|
||||
|
@ -449,8 +448,7 @@ class accountPreference_Window:
|
|||
if check.get_active():
|
||||
self.plugin.send('NEW_ACC', None, (hostname, login, \
|
||||
entryPass.get_text(), name, entryRessource.get_text(), prio, \
|
||||
checkProxy.get_active(), entryProxyhost.get_text(), \
|
||||
entryProxyport.get_text()))
|
||||
checkProxy.get_active(), entryProxyhost.get_text(), proxyPort))
|
||||
check.set_active(FALSE)
|
||||
return
|
||||
self.plugin.accounts[name] = {'name': login, 'hostname': hostname,\
|
||||
|
|
Loading…
Add table
Reference in a new issue