fix traceback when we get bookmarks and roster is not present.
This commit is contained in:
parent
15b3ba35b1
commit
7a976135e2
|
@ -569,6 +569,7 @@ class RosterWindow:
|
||||||
big_brother_jid)
|
big_brother_jid)
|
||||||
child_iters = self._get_contact_iter(big_brother_jid, big_brother_account,
|
child_iters = self._get_contact_iter(big_brother_jid, big_brother_account,
|
||||||
model=self.model)
|
model=self.model)
|
||||||
|
if child_iters:
|
||||||
parent_iter = self.model.iter_parent(child_iters[0])
|
parent_iter = self.model.iter_parent(child_iters[0])
|
||||||
parent_type = self.model[parent_iter][C_TYPE]
|
parent_type = self.model[parent_iter][C_TYPE]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue