Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2009-07-09 21:06:08 +0400
committerYann Leboulanger <asterix@lagaule.org>2009-07-09 21:06:08 +0400
commitce73e82fceb04090800b396a75e0254d88437d4b (patch)
tree0cb91f4d040732f6743f89ec988d45e613b3001a
parentdd3d82885b65fd884332b2e5f3f4c90ea5001cd0 (diff)
Fix traceback when right click on email in history viewer. Fixes #5131
-rw-r--r--src/conversation_textview.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/conversation_textview.py b/src/conversation_textview.py
index c25177651..ad7472c91 100644
--- a/src/conversation_textview.py
+++ b/src/conversation_textview.py
@@ -842,12 +842,13 @@ class ConversationTextview:
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,