[danguy] log_encrypted_sessions is no more a global variable! Fixes #5132

This commit is contained in:
Yann Leboulanger 2009-07-02 08:20:17 +02:00
parent 77c5a8d36d
commit 0492b82384
1 changed files with 4 additions and 5 deletions

View File

@ -1268,12 +1268,11 @@ class ChatControl(ChatControlBase):
'status', '', None)
if self.session:
self.session.loggable = gajim.config.get(
'log_encrypted_sessions')
self.session.loggable = gajim.config.get_per('accounts',
self.account, 'log_encrypted_sessions')
# GPG is always authenticated as we use GPG's WoT
self._show_lock_image(self.gpg_is_active, 'GPG',
self.gpg_is_active,
self.session and self.session.is_loggable(), True)
self._show_lock_image(self.gpg_is_active, 'GPG', self.gpg_is_active,
self.session and self.session.is_loggable(), True)
self.status_tooltip = gtk.Tooltips()