pidgin/gtkaccount.c

changeset 27593
003fc1b49072
parent 27361
62f1aa8045bb
parent 27581
c9711347326d
child 27603
3d1ab4e5f6c3
equal deleted inserted replaced
27399:7f99a7d1f249 27593:003fc1b49072
1988 buddyicon = g_object_ref(G_OBJECT(global_buddyicon)); 1988 buddyicon = g_object_ref(G_OBJECT(global_buddyicon));
1989 else { 1989 else {
1990 /* This is for when set_account() is called for a single account */ 1990 /* This is for when set_account() is called for a single account */
1991 const char *path; 1991 const char *path;
1992 path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon"); 1992 path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon");
1993 if (path != NULL) 1993 if ((path != NULL) && (*path != '\0')) {
1994 img = purple_imgstore_new_from_file(path); 1994 img = purple_imgstore_new_from_file(path);
1995 }
1995 } 1996 }
1996 } else { 1997 } else {
1997 img = purple_buddy_icons_find_account_icon(account); 1998 img = purple_buddy_icons_find_account_icon(account);
1998 } 1999 }
1999 } 2000 }

mercurial