Mercurial > pidgin
changeset 14475:feedb7828791
[gaim-migrate @ 17191]
Renaming the buddies (contacts) was not working. Err (Joshua Blanton) reported the bug.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 08 Sep 2006 14:43:34 +0000 |
parents | adcdf5e04128 |
children | 218a36c1c9e2 |
files | console/gntblist.c |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/console/gntblist.c Fri Sep 08 06:17:59 2006 +0000 +++ b/console/gntblist.c Fri Sep 08 14:43:34 2006 +0000 @@ -795,11 +795,16 @@ if (name && !*name) name = NULL; - if (GAIM_BLIST_NODE_IS_CONTACT(node)) - gaim_blist_alias_contact((GaimContact*)node, name); - else if (GAIM_BLIST_NODE_IS_BUDDY(node)) + if (GAIM_BLIST_NODE_IS_CONTACT(node)) { + GaimContact *contact = (GaimContact*)node; + GaimBuddy *buddy = gaim_contact_get_priority_buddy(contact); + gaim_blist_alias_contact(contact, name); + gaim_blist_alias_buddy(buddy, name); + serv_alias_buddy(buddy); + } else if (GAIM_BLIST_NODE_IS_BUDDY(node)) { gaim_blist_alias_buddy((GaimBuddy*)node, name); - else if (GAIM_BLIST_NODE_IS_CHAT(node)) + serv_alias_buddy((GaimBuddy*)node); + } else if (GAIM_BLIST_NODE_IS_CHAT(node)) gaim_blist_alias_chat((GaimChat*)node, name); else if (GAIM_BLIST_NODE_IS_GROUP(node)) gaim_blist_rename_group((GaimGroup*)node, name);