2 bugs less2 bugs less
This commit is contained in:
parent
4fb271ad1f
commit
d84e0444c9
|
@ -126,13 +126,12 @@ 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
|
||||
if ev[1] != 'offline':
|
||||
p = common.jabber.Presence()
|
||||
p.setShow(ev[1])
|
||||
self.con.send(p)
|
||||
|
|
|
@ -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