From 27d85a0961f7aad312538213f68862e2db09726b Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 3 Feb 2013 23:31:27 +0100 Subject: Fix the folding of contacts in multiple groups (add a defaultdict to keep the folded state in each group) --- src/roster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/roster.py') diff --git a/src/roster.py b/src/roster.py index a3741f82..67e81da9 100644 --- a/src/roster.py +++ b/src/roster.py @@ -188,7 +188,7 @@ class Roster(object): len(contact) == 0: continue length += 1 # One for the contact's line - if not contact.folded: + if not contact.folded(group.name): # One for each resource, if the contact is unfolded length += len(contact) if not self.contact_filter or before != length: -- cgit v1.2.3