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
changeset 44fc9372982c in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=44fc9372982c
description: do not traceback when we receive a corboned message sent without a to attribute. Fixes #8194
diffstat:
src/common/connection_handlers_events.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r c352fb5668bb -r 44fc9372982c src/common/connection_handlers_events.py
--- a/src/common/connection_handlers_events.py Tue Nov 24 20:16:00 2015 +0100
+++ b/src/common/connection_handlers_events.py Tue Nov 24 21:07:59 2015 +0100
@@ -1147,6 +1147,8 @@
if not frm:
frm = gajim.get_jid_from_account(account)
self.stanza.setTo(frm)
+ if not to:
+ to = gajim.get_jid_from_account(account)
self.stanza.setFrom(to)
self.sent = True
try:
changeset fe0edaff4d8d in /home/hg/repos/gajim
author: Yann Leboulanger <asterix(a)lagaule.org>
branches:
details:http://hg.gajim.org/gajim?cmd=changeset;node=fe0edaff4d8d
description: do not crash when we remove a contact for which neerby contcts are not in the same accounts. Fixes #8157
diffstat:
src/common/contacts.py | 2 ++
src/roster_window.py | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r d784a98d301a -r fe0edaff4d8d src/common/contacts.py
--- a/src/common/contacts.py Sun Nov 15 14:28:31 2015 +0100
+++ b/src/common/contacts.py Sun Nov 15 21:07:02 2015 +0100
@@ -840,6 +840,8 @@
# we want one nearby_family per account
nearby_family = [data for data in family if account == data['account']]
+ if not nearby_family:
+ return (None, None, None)
big_brother_data = self._get_metacontacts_big_brother(nearby_family)
big_brother_jid = big_brother_data['jid']
big_brother_account = big_brother_data['account']
diff -r d784a98d301a -r fe0edaff4d8d src/roster_window.py
--- a/src/roster_window.py Sun Nov 15 14:28:31 2015 +0100
+++ b/src/roster_window.py Sun Nov 15 21:07:02 2015 +0100
@@ -491,6 +491,8 @@
nearby_family, big_brother_jid, big_brother_account = \
self._get_nearby_family_and_big_brother(family, account)
+ if not big_brother_jid:
+ return []
big_brother_contact = gajim.contacts.get_first_contact_from_jid(
big_brother_account, big_brother_jid)