# HG changeset patch # User Sadrul Habib Chowdhury # Date 1180819414 0 # Node ID 55a90b3fb1a1310e92ffe24f6cd4ba1f985c7e64 # Parent 05d7fe2320a99ef2b82e1f641ba18f66a7c88f77 Fix for the bug Alver reported: (16:30:57) Alver: If you're on more than one account, and they're grouped as one metacontact on your own list (16:31:22) Alver: and the "primary" account disconnects, the metacontact keeps the friendly name of the disconnected account diff -r 05d7fe2320a9 -r 55a90b3fb1a1 finch/gntblist.c --- a/finch/gntblist.c Sat Jun 02 20:56:12 2007 +0000 +++ b/finch/gntblist.c Sat Jun 02 21:23:34 2007 +0000 @@ -104,6 +104,7 @@ static void add_group(PurpleGroup *group, FinchBlist *ggblist); static void add_chat(PurpleChat *chat, FinchBlist *ggblist); static void add_node(PurpleBlistNode *node, FinchBlist *ggblist); +static void node_update(PurpleBuddyList *list, PurpleBlistNode *node); static void draw_tooltip(FinchBlist *ggblist); static gboolean remove_typing_cb(gpointer null); static void remove_peripherals(FinchBlist *ggblist); @@ -189,6 +190,8 @@ if ((!purple_prefs_get_bool(PREF_ROOT "/showoffline") && !is_contact_online(contact)) || contact->currentsize < 1) node_remove(list, (PurpleBlistNode*)contact); + else + node_update(list, (PurpleBlistNode*)contact); } else if (!PURPLE_BLIST_NODE_IS_GROUP(node)) { PurpleGroup *group = (PurpleGroup*)node->parent; if ((!purple_prefs_get_bool(PREF_ROOT "/showoffline") && !is_group_online(group)) ||