changeset a736d5846aab in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=a736d5846aab
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 bf99b1df1234 -r a736d5846aab 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
@@ -873,12 +873,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,
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits