diff finch/gntblist.c @ 18001:55a90b3fb1a1

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
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 02 Jun 2007 21:23:34 +0000
parents 1b6db70bdab2
children 08776fc5c06f
line wrap: on
line diff
--- 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)) ||