From edaa70740ea48bf6805e36f24115b9ba4749d55b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 4 Jan 2006 12:52:26 +0000 Subject: [PATCH] prevent TB when we move a contact that was in no group --- src/roster_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index 23e338584..ecc7557e8 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2503,7 +2503,9 @@ _('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: - c.groups.remove(grp_source) + 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 model.remove(iter_group_source)