diff src/list.c @ 4936:cfeab08d4be9

[gaim-migrate @ 5270] This should fix up the group deletion segfaults, makes the offline groups not start out collapsed, and probably something else i've forgotten. Oh, yeah, makes the show offline buddies preference actually work right. Also kills some code duplication. I should make buddy icons 100x100, so they can use some of that new blank space in the buddy list. That'd be cool. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 01 Apr 2003 03:19:51 +0000
parents a1551892049c
children 4228bddbf2cd
line wrap: on
line diff
--- a/src/list.c	Tue Apr 01 00:14:58 2003 +0000
+++ b/src/list.c	Tue Apr 01 03:19:51 2003 +0000
@@ -345,6 +345,14 @@
 		child = child->next;
 		gaim_blist_remove_buddy((struct buddy*)n);
 	}
+
+	if(node->parent->child == node)
+		node->parent->child = node->next;
+	if (node->prev)
+		node->prev->next = node->next;
+	if (node->next)
+		node->next->prev = node->prev;
+
 	ops->remove(gaimbuddylist, node);
 	g_free(group->name);
 	g_free(group);