bugfix : we can now drag and drop in the treeview to change a contact from a group to another

This commit is contained in:
Yann Leboulanger 2005-01-17 09:08:48 +00:00
parent fd2ca94da0
commit ea623d7a31
1 changed files with 1 additions and 1 deletions

View File

@ -1840,7 +1840,7 @@ class roster_Window:
grp_dest = model.get_value(iter_dest, 3) grp_dest = model.get_value(iter_dest, 3)
elif len(path_dest) == 3: elif len(path_dest) == 3:
grp_dest = model.get_value(model.iter_parent(iter_dest), 3) grp_dest = model.get_value(model.iter_parent(iter_dest), 3)
if grp_source != grp_dest: if grp_source == grp_dest:
return return
for u in self.contacts[account][data]: for u in self.contacts[account][data]:
u.groups.remove(grp_source) u.groups.remove(grp_source)