From 7fc312d8ad613c8667fe4658f831665b3eaff57d Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Sat, 9 Dec 2000 03:09:04 +0000 Subject: Made it so that the editor->name is set after the entry is changed. This 2000-12-08 Christopher James Lahey * contact-editor/e-contact-editor.c (full_name_clicked): Made it so that the editor->name is set after the entry is changed. This means that the reparse that the person chose is saved. svn path=/trunk/; revision=6885 --- addressbook/gui/contact-editor/e-contact-editor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/contact-editor/e-contact-editor.c') diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 9e1afacb7b..bb7387502e 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -506,8 +506,6 @@ full_name_clicked(GtkWidget *button, EContactEditor *editor) gtk_object_get(GTK_OBJECT(dialog), "name", &name, NULL); - e_card_name_free(editor->name); - editor->name = e_card_name_copy(name); fname_widget = glade_xml_get_widget(editor->gui, "entry-fullname"); if (fname_widget && GTK_IS_ENTRY(fname_widget)) { @@ -515,6 +513,9 @@ full_name_clicked(GtkWidget *button, EContactEditor *editor) e_utf8_gtk_entry_set_text(GTK_ENTRY(fname_widget), full_name); g_free(full_name); } + + e_card_name_free(editor->name); + editor->name = e_card_name_copy(name); } gtk_object_unref(GTK_OBJECT(dialog)); } -- cgit v1.2.3