From 20da1867ea97adc3b1e07b759aafd276e1c6c75a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 24 Jul 2009 11:31:21 +0200 Subject: Bug #589580 - Crashes when dragging an image to the contact editor --- addressbook/gui/widgets/eab-gui-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/widgets/eab-gui-util.c') diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index 87601d7271..c11ff5351a 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -1023,7 +1023,8 @@ eab_create_image_chooser_widget(gchar *name, if (string1) { filename = e_icon_factory_get_icon_filename (string1, GTK_ICON_SIZE_DIALOG); - e_image_chooser_set_from_file (E_IMAGE_CHOOSER (w), filename); + if (filename && *filename) + e_image_chooser_set_from_file (E_IMAGE_CHOOSER (w), filename); g_free (filename); } -- cgit v1.2.3