remove General default group when latest is removed from it. Fixes #1775
This commit is contained in:
parent
12959a7888
commit
dfbb506f35
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue