From: Nathan W. <fac...@us...> - 2003-04-03 05:59:04
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1:/tmp/cvs-serv14018/src Modified Files: list.c Log Message: I decided it would be cool to be able to drag buddies into an empty group. I'm weird like that. Index: list.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/list.c,v retrieving revision 1.56 retrieving revision 1.57 diff -u -d -r1.56 -r1.57 --- list.c 2 Apr 2003 00:36:07 -0000 1.56 +++ list.c 3 Apr 2003 05:59:01 -0000 1.57 @@ -218,6 +218,8 @@ gaim_blist_add_group(g, NULL); } n = gaim_blist_get_last_child((GaimBlistNode*)g); + } else { + g = (struct group*)n->parent; } /* if we're moving to overtop of ourselves, do nothing */ @@ -237,9 +239,8 @@ if (node3) node3->next = node2; - if (((GaimBlistNode*)buddy)->parent != n->parent) - serv_move_buddy(buddy, (struct group*)((GaimBlistNode*)buddy)->parent, - (struct group*)n->parent); + if (((GaimBlistNode*)buddy)->parent != ((GaimBlistNode*)g)) + serv_move_buddy(buddy, (struct group*)((GaimBlistNode*)buddy)->parent, g); save = TRUE; } |