Changeset 9951

Show
Ignore:
Timestamp:
07/18/08 06:01:07 (5 months ago)
Author:
bct
Message:

fix disappearing crypto icon

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/message_control.py

    r9881 r9951  
    143143                                jid += '/' + self.resource 
    144144 
    145                         if oldsession.enable_encryption: 
    146                                 self.print_esession_details() 
     145                crypto_changed = bool(session and session.enable_encryption) != \ 
     146                        bool(oldsession and oldsession.enable_encryption) 
     147 
     148                if crypto_changed: 
     149                        self.print_esession_details() 
    147150 
    148151        def send_message(self, message, keyID = '', type = 'chat',