2 bugs less2 bugs less
This commit is contained in:
parent
4fb271ad1f
commit
d84e0444c9
|
@ -126,16 +126,15 @@ class GajimCore:
|
|||
return
|
||||
#('STATUS', status)
|
||||
elif ev[0] == 'STATUS':
|
||||
|
||||
if (ev[1] != 'offline') and (self.connected == 0):
|
||||
self.connect()
|
||||
elif (ev[1] == 'offline') and (self.connected == 1):
|
||||
self.con.disconnect()
|
||||
self.connected = 0
|
||||
return 1
|
||||
p = common.jabber.Presence()
|
||||
p.setShow(ev[1])
|
||||
self.con.send(p)
|
||||
if ev[1] != 'offline':
|
||||
p = common.jabber.Presence()
|
||||
p.setShow(ev[1])
|
||||
self.con.send(p)
|
||||
#('MSG', (jid, msg))
|
||||
elif ev[0] == 'MSG':
|
||||
msg = common.jabber.Message(ev[1][0], ev[1][1])
|
||||
|
|
|
@ -338,6 +338,8 @@ class roster:
|
|||
|
||||
def on_status_changed(self, widget):
|
||||
self.queueOUT.put(('STATUS',widget.name))
|
||||
if not self.showOffline:
|
||||
self.treestore.clear()
|
||||
|
||||
def on_add(self, widget):
|
||||
window_add = add(self)
|
||||
|
|
Loading…
Reference in New Issue