[gaim-migrate @ 5275]

Tue, 01 Apr 2003 06:09:07 +0000

author
Nathan Walp <nwalp@pidgin.im>
date
Tue, 01 Apr 2003 06:09:07 +0000
changeset 4941
fdb0bcfc35a4
parent 4940
6f9acbfc8a3d
child 4942
202cb90e14ba

[gaim-migrate @ 5275]
really fix the assorted buddy dragging hangs

src/list.c file | annotate | diff | comparison | revisions
--- 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;

mercurial