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>2006-05-01 17:29:16 +0400
committerYann Leboulanger <asterix@lagaule.org>2006-05-01 17:29:16 +0400
commit1e6c848761c46f4d27f2f5d8f0ccc31c99703f1d (patch)
tree88e144e268bfb4fad89c5f21c2d723a91738cdfc
parent5a9625ff902e9ed220ca5cd351a1bfdd709ed534 (diff)
use jid_is_transport func to detect transport jid
-rw-r--r--src/chat_control.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chat_control.py b/src/chat_control.py
index eec9cd718..cf6e60e8f 100644
--- a/src/chat_control.py
+++ b/src/chat_control.py
@@ -937,7 +937,7 @@ class ChatControl(ChatControlBase):
# we can do gpg
# if self.contact is our own contact info (transports),
# don't enable pgp
- if self.contact.keyID and self.contact.jid.find('@') != -1:
+ if self.contact.keyID and not gajim.jid_is_transport(self.contact.jid):
tb.set_sensitive(True)
tt = _('OpenPGP Encryption')