From: <sa...@us...> - 2006-10-12 01:02:11
|
Revision: 17462 http://svn.sourceforge.net/gaim/?rev=17462&view=rev Author: sadrul Date: 2006-10-11 18:02:07 -0700 (Wed, 11 Oct 2006) Log Message: ----------- Patch #1574229 from Richard Nelson (wabz) to fix a crash when adding a buddy and show-offline is set to true. Modified Paths: -------------- trunk/console/gntblist.c Modified: trunk/console/gntblist.c =================================================================== --- trunk/console/gntblist.c 2006-10-11 08:59:01 UTC (rev 17461) +++ trunk/console/gntblist.c 2006-10-12 01:02:07 UTC (rev 17462) @@ -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, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |