changeset 4aebcf69f85a in /home/hg/repos/gajim details:http://hg.gajim.org/gajim?cmd=changeset;node=4aebcf69f85a description: fix traceback when we get bookmarks and roster is not present.
diffstat: src/roster_window.py | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) diffs (41 lines): diff -r b24f17156faa -r 4aebcf69f85a src/roster_window.py --- a/src/roster_window.py Sun Jul 12 13:33:29 2009 +0200 +++ b/src/roster_window.py Sun Jul 12 15:13:17 2009 +0200 @@ -569,21 +569,22 @@ big_brother_jid) child_iters = self._get_contact_iter(big_brother_jid, big_brother_account, model=self.model) - parent_iter = self.model.iter_parent(child_iters[0]) - parent_type = self.model[parent_iter][C_TYPE] - - # Check if the current BigBrother has even been before. - if parent_type == 'contact': - for data in nearby_family: - # recalibrate after remove to keep highlight - if data['jid'] in gajim.to_be_removed[data['account']]: - return - - self._remove_metacontact_family(family, account) - brothers = self._add_metacontact_family(family, account) - - for c, acc in brothers: - self.draw_completely(c.jid, acc) + if child_iters: + parent_iter = self.model.iter_parent(child_iters[0]) + parent_type = self.model[parent_iter][C_TYPE] + + # Check if the current BigBrother has even been before. + if parent_type == 'contact': + for data in nearby_family: + # recalibrate after remove to keep highlight + if data['jid'] in gajim.to_be_removed[data['account']]: + return + + self._remove_metacontact_family(family, account) + brothers = self._add_metacontact_family(family, account) + + for c, acc in brothers: + self.draw_completely(c.jid, acc) # Check is small brothers are under the big brother for child in nearby_family: _______________________________________________ Commits mailing list Commits@gajim.org http://lists.gajim.org/cgi-bin/listinfo/commits