fix weird traceback

This commit is contained in:
Yann Leboulanger 2011-07-22 12:05:38 +02:00
parent bc21294086
commit 735032e250
1 changed files with 4 additions and 1 deletions

View File

@ -623,7 +623,10 @@ class MessageWindow(object):
self.notebook.set_show_tabs(show_tabs_if_one_tab)
def redraw_tab(self, ctrl, chatstate = None):
hbox = self.notebook.get_tab_label(ctrl.widget).get_children()[0]
tab = self.notebook.get_tab_label(ctrl.widget)
if not tab:
return
hbox = tab.get_children()[0]
status_img = hbox.get_children()[0]
nick_label = hbox.get_children()[1]