Mercurial > pidgin.yaz
diff gtk/gtkstatusbox.c @ 14785:36b55cb22bc2
[gaim-migrate @ 17549]
Fix bug #1580569
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 19 Oct 2006 22:02:25 +0000 |
parents | 091b6ce6372e |
children | 4138063d89c9 |
line wrap: on
line diff
--- a/gtk/gtkstatusbox.c Thu Oct 19 14:05:30 2006 +0000 +++ b/gtk/gtkstatusbox.c Thu Oct 19 22:02:25 2006 +0000 @@ -1231,19 +1231,19 @@ } gtk_gaim_status_box_set_buddy_icon(box, filename); } - - box->buddy_icon_sel = NULL; } static void icon_choose_cb(const char *filename, gpointer data) { GtkGaimStatusBox *box = data; - if (box->account == NULL) + if (box->account == NULL && filename) /* The pref-connect callback does the actual work */ gaim_prefs_set_string("/gaim/gtk/accounts/buddyicon", filename); else buddy_icon_set_cb(filename, data); + + box->buddy_icon_sel = NULL; } static void