prevent TB when we move a contact that was in no group
This commit is contained in:
parent
8e3d85c746
commit
edaa70740e
|
@ -2503,6 +2503,8 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
|||
# user1.groups
|
||||
c = gajim.contacts.get_first_contact_from_jid(account, data)
|
||||
if context.action != gtk.gdk.ACTION_COPY:
|
||||
if grp_source in c.groups:
|
||||
# Make sure contact was in a group
|
||||
c.groups.remove(grp_source)
|
||||
if model.iter_n_children(iter_group_source) == 1:
|
||||
# this was the only child
|
||||
|
|
Loading…
Reference in New Issue