# HG changeset patch # User Mark Doliner # Date 1233224965 0 # Node ID c434094cf298cf660459c38a30b4e7b9675ba5a1 # Parent 3cace6a9a28fb7eb5e07a2619749872a6bee2927 Fix a bug where the thumbnail buddy icon in the Accounts dialog would get cleared if you dragdropped or edited an account which was using your global buddy icon. The global_buddyicon variable is only set when the dialog is initially populated, so we need to look up the path to that icon again and grab the thumbnail from there. diff -r 3cace6a9a28f -r c434094cf298 pidgin/gtkaccount.c --- a/pidgin/gtkaccount.c Thu Jan 29 08:23:27 2009 +0000 +++ b/pidgin/gtkaccount.c Thu Jan 29 10:29:25 2009 +0000 @@ -1990,9 +1990,13 @@ if (purple_account_get_bool(account, "use-global-buddyicon", TRUE)) { if (global_buddyicon != NULL) buddyicon = g_object_ref(G_OBJECT(global_buddyicon)); - /* This is for when set_account() is called for a single account */ - else - img = purple_buddy_icons_find_account_icon(account); + else { + /* This is for when set_account() is called for a single account */ + const char *path; + path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon"); + if (path != NULL) + img = purple_imgstore_new_from_file(path); + } } else { img = purple_buddy_icons_find_account_icon(account); }