diff --git a/plugins/gtkgui/groupchat_window.py b/plugins/gtkgui/groupchat_window.py index 3888991c10c1deb6f1b5d43e9b9c842a48a9cef1..ddc1f4a83083e7f1fd4f0744cc1ca978062522f4 100644 --- a/plugins/gtkgui/groupchat_window.py +++ b/plugins/gtkgui/groupchat_window.py @@ -517,13 +517,13 @@ class Groupchat_window(Chat): model = widget.get_model() iter = model.get_iter(path) - type = model.get_value(iter, 2) - if (type == 'group' or type == 'account'): + status = model.get_value(iter, 3) # if no status: it's a group + if not status: if x < 20: # first cell in 1st column (the arrow SINGLE clicked) - if (self.tree.row_expanded(path)): - self.tree.collapse_row(path) + if (widget.row_expanded(path)): + widget.collapse_row(path) else: - self.tree.expand_row(path, False) + widget.expand_row(path, False) #FIXME: should popup chat window for GC contact DOUBLE clicked # also chat [in contect menu]