Mercurial > pidgin.yaz
comparison src/gtkaccount.c @ 14186:ad751ad39f23
[gaim-migrate @ 16849]
Fix assert editing an account w/o a buddy icon specified.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 18 Aug 2006 22:26:09 +0000 |
parents | 178540dc0517 |
children | 95a4542e92d4 |
comparison
equal
deleted
inserted
replaced
14185:ae71426fbb2e | 14186:ad751ad39f23 |
---|---|
190 | 190 |
191 static void | 191 static void |
192 set_dialog_icon(AccountPrefsDialog *dialog) | 192 set_dialog_icon(AccountPrefsDialog *dialog) |
193 { | 193 { |
194 char *filename = gaim_buddy_icons_get_full_path(dialog->icon_path); | 194 char *filename = gaim_buddy_icons_get_full_path(dialog->icon_path); |
195 GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(filename, NULL); | 195 GdkPixbuf *pixbuf = NULL; |
196 if (filename) | |
197 gdk_pixbuf_new_from_file(filename, NULL); | |
196 | 198 |
197 if (pixbuf && dialog->prpl_info && | 199 if (pixbuf && dialog->prpl_info && |
198 (dialog->prpl_info->icon_spec.scale_rules & GAIM_ICON_SCALE_DISPLAY)) | 200 (dialog->prpl_info->icon_spec.scale_rules & GAIM_ICON_SCALE_DISPLAY)) |
199 { | 201 { |
200 int width, height; | 202 int width, height; |