From: <the...@us...> - 2006-06-27 16:28:27
|
Revision: 16358 Author: thekingant Date: 2006-06-27 09:28:20 -0700 (Tue, 27 Jun 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16358&view=rev Log Message: ----------- Fix an assertion failure when adding a buddy to your buddy list and you have an open conversation with that buddy and you don't have an icon for them. Modified Paths: -------------- trunk/src/gtkblist.c Modified: trunk/src/gtkblist.c =================================================================== --- trunk/src/gtkblist.c 2006-06-27 06:52:23 UTC (rev 16357) +++ trunk/src/gtkblist.c 2006-06-27 16:28:20 UTC (rev 16358) @@ -4461,9 +4461,10 @@ add_buddy_cb(GtkWidget *w, int resp, GaimGtkAddBuddyData *data) { const char *grp, *who, *whoalias; + GaimGroup *g; + GaimBuddy *b; GaimConversation *c; - GaimBuddy *b; - GaimGroup *g; + GaimBuddyIcon *icon; if (resp == GTK_RESPONSE_OK) { @@ -4500,7 +4501,9 @@ c = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, who, data->account); if (c != NULL) { - gaim_buddy_icon_update(gaim_conv_im_get_icon(GAIM_CONV_IM(c))); + icon = gaim_conv_im_get_icon(GAIM_CONV_IM(c)); + if (icon != NULL) + gaim_buddy_icon_update(icon); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |