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 --- addressbook/gui/widgets/eab-gui-util.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'addressbook') diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index 0faa1a14cf..4f84eed6e4 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -286,7 +286,7 @@ eab_select_source (const gchar *title, const gchar *message, const gchar *select gchar * eab_suggest_filename (GList *contact_list) { - gchar *current_name = NULL; + gchar *current_name = NULL, *res; g_return_val_if_fail (contact_list != NULL, NULL); @@ -305,7 +305,10 @@ eab_suggest_filename (GList *contact_list) if (current_name == NULL) current_name = make_safe_filename (_("list")); - return current_name; + res = g_strconcat (current_name, ".vcf", NULL); + g_free (current_name); + + return res; } typedef struct ContactCopyProcess_ ContactCopyProcess; -- cgit v1.2.3