Show
Ignore:
Timestamp:
07/22/08 16:32:37 (4 months ago)
Author:
js
Message:

* End ESession when remote signs off.
* Fix typo.
* Better code in conversation_textview.py.

@bct: Your diff didn't work, I had to move it + add an if. Seems to
work now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/conversation_textview.py

    r9959 r9981  
    398398 
    399399        def show_xep0184_warning(self, id): 
    400                 try: 
    401                         if self.xep0184_marks[id] is not None: 
    402                                 return 
    403                 except KeyError: 
    404                         pass 
     400                if self.xep0184_marks.has_key(id): 
     401                        return 
    405402 
    406403                buffer = self.tv.get_buffer() 
     
    428425 
    429426        def hide_xep0184_warning(self, id): 
    430                 try: 
    431                         if self.xep0184_marks[id] is None: 
    432                                 return 
    433                 except KeyError: 
     427                if not self.xep0184_marks.has_key(id): 
    434428                        return 
    435429 
     
    453447                buffer.end_user_action() 
    454448 
    455                 self.xep0184_marks[id] = None 
     449                del self.xep0184_marks[id] 
    456450                del self.xep0184_shown[id] 
    457451