remove <ping> child in ping reply. Fixes #7286
This commit is contained in:
parent
9698251570
commit
e3bc4ef020
|
@ -1833,6 +1833,9 @@ ConnectionJingle, ConnectionIBBytestream):
|
|||
if not self.connection or self.connected < 2:
|
||||
return
|
||||
iq_obj = obj.stanza.buildReply('result')
|
||||
q = iq_obj.getTag('ping')
|
||||
if q:
|
||||
iq_obj.delChild(q)
|
||||
self.connection.send(iq_obj)
|
||||
|
||||
def _PrivacySetCB(self, con, iq_obj):
|
||||
|
|
|
@ -3457,6 +3457,8 @@ class RosterWindow:
|
|||
"""
|
||||
When a key is pressed in the treeviews
|
||||
"""
|
||||
print 'tree', event.keyval
|
||||
print gtk.gdk.keyval_to_unicode(event.keyval)
|
||||
self.tooltip.hide_tooltip()
|
||||
if event.keyval == gtk.keysyms.Escape:
|
||||
if self.rfilter_enabled:
|
||||
|
@ -4435,6 +4437,7 @@ class RosterWindow:
|
|||
self.disable_rfilter()
|
||||
|
||||
def on_rfilter_entry_key_press_event(self, widget, event):
|
||||
print 'rfilter', event.keyval
|
||||
if event.keyval == gtk.keysyms.Escape:
|
||||
self.disable_rfilter()
|
||||
elif event.keyval == gtk.keysyms.Return:
|
||||
|
|
Loading…
Reference in New Issue