# HG changeset patch # User Richard Laager # Date 1177421262 0 # Node ID bae9211543519537897d2f87515d2443b1882550 # Parent 44489a2123e76263e1a5995b340c60a14e288db2 If we're not caching icons, then don't save the filename. diff -r 44489a2123e7 -r bae921154351 libpurple/buddyicon.c --- a/libpurple/buddyicon.c Tue Apr 24 04:39:07 2007 +0000 +++ b/libpurple/buddyicon.c Tue Apr 24 13:27:42 2007 +0000 @@ -379,7 +379,7 @@ old_icon = g_strdup(purple_blist_node_get_string((PurpleBlistNode *)buddy, "buddy_icon")); - if (icon->img) + if (icon->img && purple_buddy_icons_is_caching()) { const char *filename = purple_imgstore_get_filename(icon->img); purple_blist_node_set_string((PurpleBlistNode *)buddy, @@ -637,7 +637,7 @@ old_icon = g_strdup(purple_blist_node_get_string((PurpleBlistNode *)contact, "custom_buddy_icon")); - if (img) + if (img && purple_buddy_icons_is_caching()) { const char *filename = purple_imgstore_get_filename(img); purple_blist_node_set_string((PurpleBlistNode *)contact,