changeset 22415:9a12b7f5b1f5

Just write out the buddy icon file; there's no need to check to see if it exists. This is for the cache, and if the blist.xml gets out of sync with the cache on disk (for example, because the user moves the blist.xml file out of the way), the existing code will never update the cached icon again.
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 04 Mar 2008 23:53:44 +0000
parents 67f62f55fc5a
children 0c098ebe9f16
files libpurple/buddyicon.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/buddyicon.c	Tue Mar 04 18:50:16 2008 +0000
+++ b/libpurple/buddyicon.c	Tue Mar 04 23:53:44 2008 +0000
@@ -121,13 +121,8 @@
 		}
 	}
 
-	if (!g_file_test(path, G_FILE_TEST_EXISTS)) {
-		purple_util_write_data_to_file_absolute(path, purple_imgstore_get_data(img),
-							purple_imgstore_get_size(img));	
-	} else 	{
-		purple_debug_error("buddyicon", "Unable to create file %s: %s\n",
-		                   path, "File already exists.");
-	}
+	purple_util_write_data_to_file_absolute(path, purple_imgstore_get_data(img),
+											purple_imgstore_get_size(img));	
 	g_free(path);
 }