Author: jim++ Date: 2008-03-20 21:39:51 +0100 (Thu, 20 Mar 2008) New Revision: 9402
Modified: trunk/src/groupchat_control.py Log: Fix TB introduced in [9400] if using minimized muc
Modified: trunk/src/groupchat_control.py =================================================================== --- trunk/src/groupchat_control.py 2008-03-20 20:26:58 UTC (rev 9401) +++ trunk/src/groupchat_control.py 2008-03-20 20:39:51 UTC (rev 9402) @@ -845,7 +845,8 @@ 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 @@ 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()