changeset 16970:a520e48dbfef

Patch from ticket #819 from vampire Here's a quick fix for the disappearing buddy icons bug. Looks like this happens in purple_buddy_icons_find() when caching is disabled, and purple_buddy_icon_update() then removes the settings from the blist. Fixes #491
author Richard Laager <rlaager@wiktel.com>
date Wed, 09 May 2007 19:05:19 +0000
parents 9457f04bd857
children 21b7f05a2878
files libpurple/buddyicon.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/buddyicon.c	Wed May 09 19:02:36 2007 +0000
+++ b/libpurple/buddyicon.c	Wed May 09 19:05:19 2007 +0000
@@ -416,7 +416,7 @@
 			}
 			ref_filename(filename);
 		}
-		else
+		else if (!icon->img)
 		{
 			purple_blist_node_remove_setting((PurpleBlistNode *)buddy, "buddy_icon");
 			purple_blist_node_remove_setting((PurpleBlistNode *)buddy, "icon_checksum");