Show
Ignore:
Timestamp:
08/31/07 10:11:35 (15 months ago)
Author:
asterix
Message:

prevent TB when closing a window. fixes #3152

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/message_window.py

    r7984 r8657  
    236236        def show_title(self, urgent = True, control = None): 
    237237                '''redraw the window's title''' 
     238                if not control: 
     239                        control = self.get_active_control() 
     240                if not control: 
     241                        # No more control in this window 
     242                        return 
    238243                unread = 0 
    239244                for ctrl in self.controls(): 
     
    254259                        urgent = False 
    255260 
    256                 if not control: 
    257                         control = self.get_active_control() 
    258261                if control.type_id == message_control.TYPE_GC: 
    259262                        name = control.room_jid.split('@')[0]