aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-12-10 23:08:52 +0800
committerMilan Crha <mcrha@redhat.com>2009-12-10 23:08:52 +0800
commit4a9bf4dffd98346f9eee848708df573df56ed1d6 (patch)
treeff25e44e04c981f030fdbd734520dd6f0c9703cd /addressbook/gui/widgets
parent23b4037df07370ee9f2bf069db2256620c0a2f82 (diff)
downloadgsoc2013-evolution-4a9bf4dffd98346f9eee848708df573df56ed1d6.tar.gz
gsoc2013-evolution-4a9bf4dffd98346f9eee848708df573df56ed1d6.tar.zst
gsoc2013-evolution-4a9bf4dffd98346f9eee848708df573df56ed1d6.zip
Bug #499322 - Use extension for "Save as" suggested file name
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c7
1 files changed, 5 insertions, 2 deletions
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;