From 308fb28f686a542c1af12e4082e1780ffc2beb53 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Mon, 29 Nov 2010 13:20:30 +0300 Subject: [PATCH] Revert [12651] --- src/roster_window.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 6484ad21b..71f816125 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -1196,8 +1196,8 @@ class RosterWindow: self._get_nearby_family_and_big_brother(family, account)[1:] is_big_brother = (jid, account) == (bb_jid, bb_account) iters = self._get_contact_iter(jid, account) - if iters != [] and is_big_brother and (len(family) > 1): - have_visible_children = self.modelfilter.iter_has_child(iters[0]) + have_visible_children = iters and \ + self.modelfilter.iter_has_child(iters[0]) if have_visible_children: # We are the big brother and have a visible family