fix weird traceback
This commit is contained in:
parent
bc21294086
commit
735032e250
|
@ -623,7 +623,10 @@ class MessageWindow(object):
|
||||||
self.notebook.set_show_tabs(show_tabs_if_one_tab)
|
self.notebook.set_show_tabs(show_tabs_if_one_tab)
|
||||||
|
|
||||||
def redraw_tab(self, ctrl, chatstate = None):
|
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]
|
status_img = hbox.get_children()[0]
|
||||||
nick_label = hbox.get_children()[1]
|
nick_label = hbox.get_children()[1]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue