remove General default group when latest is removed from it. Fixes #1775

This commit is contained in:
Yann Leboulanger 2006-03-29 18:15:18 +00:00
parent 12959a7888
commit dfbb506f35

View file

@ -2900,10 +2900,9 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
contact.groups) contact.groups)
def remove_contact_from_group(self, account, contact, group): def remove_contact_from_group(self, account, contact, group):
if not group in contact.groups:
return
model = self.tree.get_model() model = self.tree.get_model()
# Make sure contact was in the group # Make sure contact was in the group
if group in contact.groups:
contact.groups.remove(group) contact.groups.remove(group)
self.remove_contact(contact, account) self.remove_contact(contact, account)