changeset 8dbd0a425c75 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=8dbd0a425c75
description: Fix traceback when right click on email in history viewer. Fixes #5131
diffstat:
src/conversation_textview.py | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (22 lines):
diff -r 6eb2fa8c41e5 -r 8dbd0a425c75 src/conversation_textview.py
--- a/src/conversation_textview.py Thu Jul 09 18:22:41 2009 +0200
+++ b/src/conversation_textview.py Thu Jul 09 19:06:08 2009 +0200
@@ -842,12 +842,13 @@
self.handlers[id] = childs[6]
allow_add = False
- c = gajim.contacts.get_first_contact_from_jid(self.account, text)
- if c and not gajim.contacts.is_pm_from_contact(self.account, c):
- if _('Not in Roster') in c.groups:
+ if self.account:
+ c = gajim.contacts.get_first_contact_from_jid(self.account, text)
+ if c and not gajim.contacts.is_pm_from_contact(self.account, c):
+ if _('Not in Roster') in c.groups:
+ allow_add = True
+ else: # he or she's not at all in the account contacts
allow_add = True
- else: # he or she's not at all in the account contacts
- allow_add = True
if allow_add:
id = childs[7].connect('activate', self.on_add_to_roster_activate,
changeset 6eb2fa8c41e5 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=6eb2fa8c41e5
description: handle correctly when MUC server force us to change our nickname by sending a 303 error presence. Fixes #5055
diffstat:
src/groupchat_control.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r 7558007fd566 -r 6eb2fa8c41e5 src/groupchat_control.py
--- a/src/groupchat_control.py Wed Jul 08 21:41:40 2009 +0200
+++ b/src/groupchat_control.py Thu Jul 09 18:22:41 2009 +0200
@@ -1159,8 +1159,9 @@
'reason': reason }
self.print_conversation(s, 'info', tim = tim)
elif '303' in statusCode: # Someone changed his or her nick
- if new_nick == self.new_nick: # We changed our nick
- self.nick = self.new_nick
+ if new_nick == self.new_nick or nick == self.nick:
+ # We changed our nick
+ self.nick = new_nick
self.new_nick = ''
s = _('You are now known as %s') % new_nick
else: