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