From 634440c762913e29a8b39535fd2739c99cec6994 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 5 Apr 2005 09:10:16 +0000 Subject: [PATCH] bugfix: when we Drag and drop a contact that is connected with several resources --- plugins/gtkgui/roster_window.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/gtkgui/roster_window.py b/plugins/gtkgui/roster_window.py index 4d4e6fa1f..87f9323f4 100644 --- a/plugins/gtkgui/roster_window.py +++ b/plugins/gtkgui/roster_window.py @@ -1273,9 +1273,11 @@ class Roster_window: grp_dest = model.get_value(model.iter_parent(iter_dest), 3) if grp_source == grp_dest: return - for u in self.contacts[account][data]: - u.groups.remove(grp_source) - u.groups.append(grp_dest) + # We upgrade only the first user because user2.groups is a pointer to + # user1.groups + u = self.contacts[account][data][0] + u.groups.remove(grp_source) + u.groups.append(grp_dest) self.plugin.send('UPDUSER', account, (u.jid, u.name, u.groups)) if model.iter_n_children(iter_group_source) == 1: #this was the only child model.remove(iter_group_source)