Mercurial > pidgin
changeset 22036:f4c0a7014498
If the UI sets a cache directory before purple_buddy_icons_init() is called
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Tue, 08 Jan 2008 21:58:31 +0000 |
parents | 0b297184de17 |
children | 47286f9bb434 |
files | libpurple/buddyicon.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/buddyicon.c Tue Jan 08 02:47:51 2008 +0000 +++ b/libpurple/buddyicon.c Tue Jan 08 21:58:31 2008 +0000 @@ -1161,7 +1161,8 @@ 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(),