From d628fbef2102621f56798d5301d370fda2fd90f2 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 16 Jan 2009 16:51:20 +0000 Subject: [PATCH] typo (append -> remove). Fixes #4618 --- src/roster_window.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 964bf6968..b190ba2e7 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1407,19 +1407,6 @@ class RosterWindow: self.tree.expand_row(path, False) return False - def _adjust_contact_expand_collapse_state(self, jid, account): - '''Expand/collapse group row based on self.collapsed_rows''' - iterC = self._get_contact_iter(jid, account) - if not iterC: - # Contact not visible - return - path = self.modelfilter.get_path(iterC) - if account + group in self.collapsed_rows: - self.tree.collapse_row(path) - else: - self.tree.expand_row(path, False) - return False - ############################################################################## ### Roster and Modelfilter handling ############################################################################## @@ -3555,7 +3542,7 @@ class RosterWindow: contact = gajim.contacts.get_contact(account, jid) for group in contact.groups: if account + group + jid in self.collapsed_rows: - self.collapsed_rows.append(account + group + jid) + self.collapsed_rows.remove(account + group + jid) family = gajim.contacts.get_metacontacts_family(account, jid) nearby_family = \ self._get_nearby_family_and_big_brother(family, account)[0]