aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-account-editor.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-03-08 00:41:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-03-08 00:41:43 +0800
commit579417fec3165f844516b5ba3d5d50f0849c39b7 (patch)
tree15ce7005472870652a6573ec1afb2567ba37459c /mail/em-account-editor.c
parent50f6a77742027c624b3bf75577fb00bf38a70a95 (diff)
downloadgsoc2013-evolution-579417fec3165f844516b5ba3d5d50f0849c39b7.tar.gz
gsoc2013-evolution-579417fec3165f844516b5ba3d5d50f0849c39b7.tar.zst
gsoc2013-evolution-579417fec3165f844516b5ba3d5d50f0849c39b7.zip
EMAccountEditor: Avoid a runtime warning.
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r--mail/em-account-editor.c5
1 files changed, 3 insertions, 2 deletions
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);