From 3de0fc21296aa0eaff331ae31d7de553a68e1ff6 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Sat, 27 Nov 2010 23:58:31 +0300 Subject: [PATCH] Fix gtk warning --- 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 423843d0f..cb09c3369 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) - have_visible_children = iters and \ - self.modelfilter.iter_has_child(iters[0]) + if iters != [] and is_big_brother and (len(family) > 1): + have_visible_children = self.modelfilter.iter_has_child(iters[0]) if have_visible_children: # We are the big brother and have a visible family