changeset 6969902c82e4 in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=6969902c82e4
description: do not loop requesting vcard when opening a chat window with ourself and we don't have a vcard stored on server
diffstat:
src/common/connection_handlers.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 8bacc6cd7994 -r 6969902c82e4 src/common/connection_handlers.py
--- a/src/common/connection_handlers.py Sat Nov 21 14:39:36 2015 +0100
+++ b/src/common/connection_handlers.py Sun Nov 22 15:14:07 2015 +0100
@@ -510,7 +510,7 @@
if id_ in self.groupchat_jids:
frm = self.groupchat_jids[id_]
del self.groupchat_jids[id_]
- if frm and frm != our_jid:
+ if frm:
# Write an empty file
self._save_vcard_to_hd(frm, '')
jid, resource = gajim.get_room_and_nick_from_fjid(frm)
changeset da37486e4f49 in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=da37486e4f49
description: set the focus on message textview in chat control only for the first opened tab. Fixes #7903
diffstat:
src/message_window.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r a3e180cba574 -r da37486e4f49 src/message_window.py
--- a/src/message_window.py Sun Nov 22 20:10:33 2015 +0100
+++ b/src/message_window.py Mon Nov 23 22:05:19 2015 +0100
@@ -315,7 +315,8 @@
# NOTE: we do not call set_control_active(True) since we don't know
# whether the tab is the active one.
self.show_title()
- GLib.timeout_add(500, control.msg_textview.grab_focus)
+ if self.get_num_controls() == 1:
+ GLib.timeout_add(500, control.msg_textview.grab_focus)
def on_tab_eventbox_button_press_event(self, widget, event, child):
if event.button == 3: # right click