From 61de59408fb2c337d779ba70aa0c1e4217d2078b Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 1 Jun 2000 19:24:29 +0000 Subject: Search for ad in arg->values instead of text since it's a list of 2000-06-01 Christopher James Lahey * filter-arg-types.c (arg_address_edit_value): Search for ad in arg->values instead of text since it's a list of filter_arg_adresses. Also, free the old value in the list. svn path=/trunk/; revision=3338 --- filter/ChangeLog | 6 ++++++ filter/filter-arg-types.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/filter/ChangeLog b/filter/ChangeLog index cd7acabaee..60aaed7af4 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,9 @@ +2000-06-01 Christopher James Lahey + + * filter-arg-types.c (arg_address_edit_value): Search for ad in + arg->values instead of text since it's a list of + filter_arg_adresses. Also, free the old value in the list. + 2000-05-30 Not Zed * filtertypes.xml: And here too. diff --git a/filter/filter-arg-types.c b/filter/filter-arg-types.c index fd0bb32248..95a7933828 100644 --- a/filter/filter-arg-types.c +++ b/filter/filter-arg-types.c @@ -347,8 +347,9 @@ arg_address_edit_value(FilterArg *arg, int index) newtext = g_strdup(gtk_entry_get_text(entry)); gtk_object_unref((GtkObject *)entry); if (index>=0 - && (node = g_list_find(arg->values, text))) { + && (node = g_list_find(arg->values, ad))) { ad = node->data; + g_free(ad->email); ad->email = newtext; } else { ad = g_malloc0(sizeof(*ad)); -- cgit v1.2.3