im.pidgin.pidgin: 5d18b4aee9c05f592af532f9155aadb23ad11d4b

evands at pidgin.im evands at pidgin.im
Tue Jan 8 17:01:04 EST 2008


-----------------------------------------------------------------
Revision: 5d18b4aee9c05f592af532f9155aadb23ad11d4b
Ancestor: a5456268d56c1a4745ac4abb84a176ecc6f68109
Author: evands at pidgin.im
Date: 2008-01-08T21:58:31
Branch: im.pidgin.pidgin

Modified files:
        libpurple/buddyicon.c

ChangeLog: 

If the UI sets a cache directory before purple_buddy_icons_init() is called

-------------- next part --------------
============================================================
--- libpurple/buddyicon.c	a73df57ec69cebed25d67518c291fe548c233eed
+++ libpurple/buddyicon.c	d2aa70ec997238e584b40dc3d6058c3788aa6e45
@@ -1161,7 +1161,8 @@ purple_buddy_icons_init()
 	                                        g_free, NULL);
 	pointer_icon_cache = g_hash_table_new(g_direct_hash, g_direct_equal);
 
-	cache_dir = g_build_filename(purple_user_dir(), "icons", NULL);
+    if (!cache_dir)
+    	cache_dir = g_build_filename(purple_user_dir(), "icons", NULL);
 
 	purple_signal_connect(purple_imgstore_get_handle(), "image-deleting",
 	                      purple_buddy_icons_get_handle(),


More information about the Commits mailing list