Mercurial > pidgin
comparison src/blist.c @ 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 | 2eca9ed49469 |
children | 1c5398ccbeb0 |
comparison
equal
deleted
inserted
replaced
11100:b3ca6fcaec05 | 11101:8b346ce5cdb8 |
---|---|
1168 cnode->prev->next = cnode->next; | 1168 cnode->prev->next = cnode->next; |
1169 if (cnode->parent->child == cnode) | 1169 if (cnode->parent->child == cnode) |
1170 cnode->parent->child = cnode->next; | 1170 cnode->parent->child = cnode->next; |
1171 | 1171 |
1172 ops->remove(gaimbuddylist, cnode); | 1172 ops->remove(gaimbuddylist, cnode); |
1173 /* ops->remove() cleaned up the cnode's ui_data, so we need to | |
1174 * reinitialize it */ | |
1175 ops->new_node(cnode); | |
1173 | 1176 |
1174 gaim_blist_schedule_save(); | 1177 gaim_blist_schedule_save(); |
1175 } | 1178 } |
1176 | 1179 |
1177 if (node != NULL) { | 1180 if (node != NULL) { |