diff options
Diffstat (limited to 'shell/e-shell-utils.c')
-rw-r--r-- | 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 b5a1f490ae..eef69d6182 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); |