small bugfix

This commit is contained in:
Yann Leboulanger 2005-03-04 14:58:00 +00:00
parent 97c1aa38e2
commit 0c96ac4a87
1 changed files with 2 additions and 0 deletions

View File

@ -608,6 +608,8 @@ class gc:
"""Remove a user from the roster"""
model = self.tree.get_model()
iter = self.get_user_iter(nick)
if not iter:
return
parent_iter = model.iter_parent(iter)
model.remove(iter)
if model.iter_n_children(parent_iter) == 0: