[evolution] EMAccountEditor: Avoid a runtime warning.



commit 579417fec3165f844516b5ba3d5d50f0849c39b7
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Mar 7 11:41:11 2012 -0500

    EMAccountEditor: Avoid a runtime warning.

 mail/em-account-editor.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index d9aa637..21dea7d 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]