changeset 4941:d7a549ab95c2

[gaim-migrate @ 5275] really fix the assorted buddy dragging hangs committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 01 Apr 2003 06:09:07 +0000
parents 3708545afe42
children 6a0b1eb407e5
files src/list.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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;