From 4a9bf4dffd98346f9eee848708df573df56ed1d6 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 10 Dec 2009 16:08:52 +0100 Subject: Bug #499322 - Use extension for "Save as" suggested file name --- modules/calendar/e-task-shell-view-actions.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/calendar/e-task-shell-view-actions.c') diff --git a/modules/calendar/e-task-shell-view-actions.c b/modules/calendar/e-task-shell-view-actions.c index f923a03f2b..6e79c23395 100644 --- a/modules/calendar/e-task-shell-view-actions.c +++ b/modules/calendar/e-task-shell-view-actions.c @@ -647,8 +647,11 @@ action_task_save_as_cb (GtkAction *action, comp_data = list->data; g_slist_free (list); + /* To Translators: Default filename part saving a task to a file when no summary is filed, the '.ics' extension is concatenated to it */ + string = icalcomp_suggest_filename (comp_data->icalcomp, _("task")); file = e_shell_run_save_dialog ( - shell, _("Save as iCalendar"), NULL, NULL, NULL); + shell, _("Save as iCalendar"), string, "*.ics:text/calendar", NULL, NULL); + g_free (string); if (file == NULL) return; -- cgit