comparison gtk/gtkaccount.c @ 14703:1734f4fd4a00

[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 <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 10 Oct 2006 08:19:45 +0000
parents bee0bdd63b1f
children 2d69b38e1d75
comparison
equal deleted inserted replaced
14702:bee0bdd63b1f 14703:1734f4fd4a00
294 { 294 {
295 AccountPrefsDialog *dialog; 295 AccountPrefsDialog *dialog;
296 296
297 dialog = data; 297 dialog = data;
298 298
299 set_dialog_icon(dialog, gaim_gtk_convert_buddy_icon(dialog->plugin, filename)); 299 if (filename != NULL)
300 set_dialog_icon(dialog, gaim_gtk_convert_buddy_icon(dialog->plugin, filename));
300 301
301 dialog->icon_filesel = NULL; 302 dialog->icon_filesel = NULL;
302 } 303 }
303 304
304 static void 305 static void