From 579417fec3165f844516b5ba3d5d50f0849c39b7 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 7 Mar 2012 11:41:11 -0500 Subject: EMAccountEditor: Avoid a runtime warning. --- mail/em-account-editor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index d9aa637f24..21dea7dff7 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2329,8 +2329,9 @@ emae_setup_settings (EMAccountEditorService *service) path = camel_local_settings_get_path ( CAMEL_LOCAL_SETTINGS (settings)); - gtk_file_chooser_set_filename ( - GTK_FILE_CHOOSER (service->pathentry), path); + if (path != NULL && *path != '\0') + gtk_file_chooser_set_filename ( + GTK_FILE_CHOOSER (service->pathentry), path); } g_object_unref (settings); -- cgit v1.2.3