Resolve GtkWarning: IA__gtk_tree_view_expand_row: assertion tree_view->priv->model != NULL

This commit is contained in:
Jefry Lagrange 2012-11-24 02:19:56 -04:00
parent a4fc916ab2
commit fc5b1893fe
1 changed files with 2 additions and 1 deletions

View File

@ -1822,7 +1822,8 @@ class GroupchatControl(ChatControlBase):
fake_jid)
if nick == self.nick: # we became online
self.got_connected()
self.list_treeview.expand_row((self.model.get_path(role_iter)), False)
if self.list_treeview.get_model():
self.list_treeview.expand_row((self.model.get_path(role_iter)), False)
if self.is_continued:
self.draw_banner_text()
return iter_