[evolution] Bug #632278 - Double .vcf extension on addressbook save
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #632278 - Double .vcf extension on addressbook save
- Date: Fri, 29 Oct 2010 14:37:28 +0000 (UTC)
commit 059caea47b692d0ca5ed2ddd32a42a1cf0cc9dc5
Author: Milan Crha <mcrha redhat com>
Date: Fri Oct 29 16:37:03 2010 +0200
Bug #632278 - Double .vcf extension on addressbook save
addressbook/gui/widgets/eab-gui-util.c | 11 ++++-------
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 a40a3a3..ebf4558 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]