aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-10-29 22:37:03 +0800
committerMilan Crha <mcrha@redhat.com>2010-10-29 22:37:03 +0800
commit059caea47b692d0ca5ed2ddd32a42a1cf0cc9dc5 (patch)
treea51ab813d8d0aef96ae5bffa93985e4c96ba6b0c /addressbook/gui
parent475c08d68f1e236b6162fd0d8861c3a7319ddeb5 (diff)
downloadgsoc2013-evolution-059caea47b692d0ca5ed2ddd32a42a1cf0cc9dc5.tar
gsoc2013-evolution-059caea47b692d0ca5ed2ddd32a42a1cf0cc9dc5.tar.gz
gsoc2013-evolution-059caea47b692d0ca5ed2ddd32a42a1cf0cc9dc5.tar.bz2
gsoc2013-evolution-059caea47b692d0ca5ed2ddd32a42a1cf0cc9dc5.tar.lz
gsoc2013-evolution-059caea47b692d0ca5ed2ddd32a42a1cf0cc9dc5.tar.xz
gsoc2013-evolution-059caea47b692d0ca5ed2ddd32a42a1cf0cc9dc5.tar.zst
gsoc2013-evolution-059caea47b692d0ca5ed2ddd32a42a1cf0cc9dc5.zip
Bug #632278 - Double .vcf extension on addressbook save
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index a40a3a3ff5..ebf4558f50 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -285,7 +285,7 @@ eab_select_source (ESource *except_source, const gchar *title, const gchar *mess
gchar *
eab_suggest_filename (GList *contact_list)
{
- gchar *current_name = NULL, *res;
+ gchar *res = NULL;
g_return_val_if_fail (contact_list != NULL, NULL);
@@ -297,15 +297,12 @@ eab_suggest_filename (GList *contact_list)
if (string == NULL)
string = e_contact_get (contact, E_CONTACT_FULL_NAME);
if (string != NULL)
- current_name = make_safe_filename (string);
+ res = make_safe_filename (string);
g_free (string);
}
- if (current_name == NULL)
- current_name = make_safe_filename (_("list"));
-
- res = g_strconcat (current_name, ".vcf", NULL);
- g_free (current_name);
+ if (res == NULL)
+ res = make_safe_filename (_("list"));
return res;
}