# HG changeset patch # User Evan Schoenberg # Date 1204674824 0 # Node ID 9a12b7f5b1f5f7c461b76ff1158ab7df750b5a58 # Parent 67f62f55fc5a5bfa081a0ea5290828be818924e6 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. diff -r 67f62f55fc5a -r 9a12b7f5b1f5 libpurple/buddyicon.c --- 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); }