This commit is contained in:
Yann Leboulanger 2006-03-05 21:32:51 +00:00
parent fe43649db9
commit cb6347ebac
1 changed files with 1 additions and 1 deletions

View File

@ -2726,7 +2726,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
# Make sure contact was in the group
contact.groups.remove(group)
group_iter = self.get_group_iter(group, account)
if model.iter_n_children(group_iter) == 0:
if model.iter_n_children(group_iter) == 1:
# this was the only child
model.remove(group_iter)
# delete the group if it is empty (need to look for offline users too)