changeset 11101:8b346ce5cdb8

[gaim-migrate @ 13140] This fixes a crash when renaming a group causes a merge with an existing group. It is kind of hackish, but works. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 13 Jul 2005 02:52:28 +0000
parents b3ca6fcaec05
children eac408c8900f
files src/blist.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Wed Jul 13 01:16:58 2005 +0000
+++ b/src/blist.c	Wed Jul 13 02:52:28 2005 +0000
@@ -1170,6 +1170,9 @@
 			cnode->parent->child = cnode->next;
 
 		ops->remove(gaimbuddylist, cnode);
+		/* ops->remove() cleaned up the cnode's ui_data, so we need to
+		 * reinitialize it */
+		ops->new_node(cnode);
 
 		gaim_blist_schedule_save();
 	}