Mercurial > pidgin
changeset 4971:da7a91c2e0dc
[gaim-migrate @ 5305]
I decided it would be cool to be able to drag buddies into an empty group.
I'm weird like that.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 03 Apr 2003 05:59:01 +0000 |
parents | 4087669769e8 |
children | ba713dabf3ef |
files | src/list.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/list.c Thu Apr 03 05:18:56 2003 +0000 +++ b/src/list.c Thu Apr 03 05:59:01 2003 +0000 @@ -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; }