# HG changeset patch # User Mark Doliner # Date 1160468385 0 # Node ID 1734f4fd4a00b5b3178da2d8c38b003c421ae589 # Parent bee0bdd63b1f159b3841de282999aedbd247e206 [gaim-migrate @ 17455] Don't try to do stuff if the user cancels out of the buddy icon selection dialog in the account editor. This gets rid of an assertion failure. committer: Tailor Script diff -r bee0bdd63b1f -r 1734f4fd4a00 gtk/gtkaccount.c --- a/gtk/gtkaccount.c Tue Oct 10 08:14:57 2006 +0000 +++ b/gtk/gtkaccount.c Tue Oct 10 08:19:45 2006 +0000 @@ -296,7 +296,8 @@ dialog = data; - set_dialog_icon(dialog, gaim_gtk_convert_buddy_icon(dialog->plugin, filename)); + if (filename != NULL) + set_dialog_icon(dialog, gaim_gtk_convert_buddy_icon(dialog->plugin, filename)); dialog->icon_filesel = NULL; }