include patch from misc@zarb.org to only show lock on tls

fixes #2556
This commit is contained in:
Stefan Bethge 2006-10-11 23:03:18 +00:00
parent 47d557fc1b
commit 6621657ccc
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class RosterWindow:
accounts = [account] accounts = [account]
num_of_accounts = len(accounts) num_of_accounts = len(accounts)
num_of_secured = gajim.get_number_of_securely_connected_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, tls_pixbuf = self.window.render_icon(gtk.STOCK_DIALOG_AUTHENTICATION,
gtk.ICON_SIZE_MENU) # the only way to create a pixbuf from stock gtk.ICON_SIZE_MENU) # the only way to create a pixbuf from stock
if num_of_secured < num_of_accounts: if num_of_secured < num_of_accounts: