[evolution] Bug 664654 - Sanitize subjects before suggesting a save filename
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 664654 - Sanitize subjects before suggesting a save filename
- Date: Thu, 24 Nov 2011 17:05:17 +0000 (UTC)
commit 8fa08de8892b288a0fcc48a21375553f994f975e
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Nov 24 12:02:59 2011 -0500
Bug 664654 - Sanitize subjects before suggesting a save filename
shell/e-shell-utils.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c
index b5a1f49..eef69d6 100644
--- a/shell/e-shell-utils.c
+++ b/shell/e-shell-utils.c
@@ -33,6 +33,8 @@
#include <glib/gi18n-lib.h>
+#include <libedataserver/e-data-server-util.h>
+
#include "widgets/misc/e-import-assistant.h"
/**
@@ -165,8 +167,14 @@ e_shell_run_save_dialog (EShell *shell,
gtk_file_chooser_set_local_only (file_chooser, FALSE);
gtk_file_chooser_set_do_overwrite_confirmation (file_chooser, TRUE);
- if (suggestion != NULL)
- gtk_file_chooser_set_current_name (file_chooser, suggestion);
+ if (suggestion != NULL) {
+ gchar *current_name;
+
+ current_name = g_strdup (suggestion);
+ e_filename_make_safe (current_name);
+ gtk_file_chooser_set_current_name (file_chooser, current_name);
+ g_free (current_name);
+ }
if (filters != NULL) {
gchar **flts = g_strsplit (filters, ";", -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]