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
1 changed files with 2 additions and 3 deletions

View File

@ -2900,11 +2900,10 @@ _('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
contact.groups.remove(group) if group in contact.groups:
contact.groups.remove(group)
self.remove_contact(contact, account) self.remove_contact(contact, account)
def drag_data_received_data(self, treeview, context, x, y, selection, info, def drag_data_received_data(self, treeview, context, x, y, selection, info,