# HG changeset patch # User Nathan Walp # Date 1049177347 0 # Node ID d7a549ab95c2e85a7574ee2efb6dd19732255df4 # Parent 3708545afe428966da35631d9659254d41c8ecea [gaim-migrate @ 5275] really fix the assorted buddy dragging hangs committer: Tailor Script diff -r 3708545afe42 -r d7a549ab95c2 src/list.c --- a/src/list.c Tue Apr 01 05:55:32 2003 +0000 +++ b/src/list.c Tue Apr 01 06:09:07 2003 +0000 @@ -202,10 +202,6 @@ struct gaim_blist_ui_ops *ops = gaimbuddylist->ui_ops; gboolean save = FALSE; - /* if we're moving to overtop of ourselves, do nothing */ - if((GaimBlistNode*)buddy == node) - return; - if (!n) { if (!g) { g = gaim_group_new(_("Buddies")); @@ -214,6 +210,10 @@ n = gaim_blist_get_last_child((GaimBlistNode*)g); } + /* if we're moving to overtop of ourselves, do nothing */ + if((GaimBlistNode*)buddy == n) + return; + if (((GaimBlistNode*)buddy)->parent) { /* This buddy was already in the list and is * being moved. @@ -284,13 +284,13 @@ return; } + if (!node) + node = gaim_blist_get_last_sibling(gaimbuddylist->root); + /* if we're moving to overtop of ourselves, do nothing */ if((GaimBlistNode*)group == node) return; - if (!node) - node = gaim_blist_get_last_sibling(gaimbuddylist->root); - if (gaim_find_group(group->name)) { /* This is just being moved */ GaimBlistNode *node2 = ((GaimBlistNode*)group)->next;