| 685 hb->group = bnode->parent->parent; |
685 hb->group = bnode->parent->parent; |
| 686 g_hash_table_remove(gaimbuddylist->buddies, hb); |
686 g_hash_table_remove(gaimbuddylist->buddies, hb); |
| 687 g_free(hb); |
687 g_free(hb); |
| 688 } |
688 } |
| 689 |
689 |
| 690 if(!bnode->parent->child) |
690 if(!bnode->parent->child) { |
| 691 gaim_blist_remove_contact((GaimContact*)bnode->parent); |
691 gaim_blist_remove_contact((GaimContact*)bnode->parent); |
| 692 |
692 } else { |
| |
693 gaim_contact_compute_priority_buddy((GaimContact*)bnode->parent); |
| |
694 ops->update(gaimbuddylist, bnode->parent); |
| |
695 } |
| 693 } |
696 } |
| 694 |
697 |
| 695 if(node && GAIM_BLIST_NODE_IS_BUDDY(node)) { |
698 if(node && GAIM_BLIST_NODE_IS_BUDDY(node)) { |
| 696 if(node->next) |
699 if(node->next) |
| 697 node->next->prev = bnode; |
700 node->next->prev = bnode; |