console/gntblist.c

changeset 14770
3dc5f1afa78a
parent 14756
bd7ebc1641e1
child 14774
317db0f851e0
--- a/console/gntblist.c	Wed Oct 11 08:58:59 2006 +0000
+++ b/console/gntblist.c	Thu Oct 12 01:02:07 2006 +0000
@@ -206,6 +206,8 @@
 		if ((!gaim_prefs_get_bool(PREF_ROOT "/showoffline") && !is_contact_online(contact)) ||
 				contact->currentsize < 1)
 			node_remove(gaim_get_blist(), node);
+		else
+			add_node(node, list->ui_data);
 	} else if (GAIM_BLIST_NODE_IS_GROUP(node)) {
 		GaimGroup *group = (GaimGroup*)node;
 		if ((!gaim_prefs_get_bool(PREF_ROOT "/showoffline") && !is_group_online(group)) ||
@@ -526,6 +528,8 @@
 		return;
 
 	contact = (GaimContact*)node->parent;
+	if (!contact)   /* When a new buddy is added and show-offline is set */
+		return;
 	add_node((GaimBlistNode*)contact, ggblist);
 
 	node->ui_data = gnt_tree_add_row_after(GNT_TREE(ggblist->tree), buddy,

mercurial