Fix TB introduced in [9400] if using minimized muc

This commit is contained in:
Jean-Marie Traissard 2008-03-20 20:39:51 +00:00
parent ff32d0ccb3
commit ccb23a9e0c
1 changed files with 4 additions and 2 deletions

View File

@ -845,7 +845,8 @@ class GroupchatControl(ChatControlBase):
ChatControlBase.got_connected(self)
# We don't redraw the whole banner here, because only icon change
self._update_banner_state_image()
self.parent_win.redraw_tab(self)
if self.parent_win:
self.parent_win.redraw_tab(self)
def got_disconnected(self):
self.list_treeview.get_model().clear()
@ -867,7 +868,8 @@ class GroupchatControl(ChatControlBase):
ChatControlBase.got_disconnected(self)
# We don't redraw the whole banner here, because only icon change
self._update_banner_state_image()
self.parent_win.redraw_tab(self)
if self.parent_win:
self.parent_win.redraw_tab(self)
def draw_roster(self):
self.list_treeview.get_model().clear()