From 6621657cccd626d8185d54d893bfa01f8e56eb8e Mon Sep 17 00:00:00 2001
From: Stefan Bethge <stefan@lanpartei.de>
Date: Wed, 11 Oct 2006 23:03:18 +0000
Subject: [PATCH] include patch from misc@zarb.org to only show lock on tls
 fixes #2556

---
 src/roster_window.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/roster_window.py b/src/roster_window.py
index 1edabc8786..0b3124ec71 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -167,7 +167,7 @@ class RosterWindow:
 			accounts = [account]
 		num_of_accounts = len(accounts)
 		num_of_secured = gajim.get_number_of_securely_connected_accounts()
-		if num_of_secured:
+		if num_of_secured and gajim.con_types.has_key(account) and gajim.con_types[account] in ('tls', 'ssl'):
 			tls_pixbuf = self.window.render_icon(gtk.STOCK_DIALOG_AUTHENTICATION,
 				gtk.ICON_SIZE_MENU) # the only way to create a pixbuf from stock
 			if num_of_secured < num_of_accounts:
-- 
GitLab