From: Sergio Villar SenĂ­n Date: Fri, 18 Dec 2009 14:52:07 +0000 (+0100) Subject: Automatic add to contacts not working if "Check names" is performed X-Git-Tag: 3.90.4~61 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=05b13196b8dd83922bac8b6c2788dfebf1a0c74d add to contacts not working if "Check names" is performed Fixes NB#151298 --- diff --git a/src/hildon2/modest-address-book.c b/src/hildon2/modest-address-book.c index 85d1e8d..fc63a9e 100644 --- a/src/hildon2/modest-address-book.c +++ b/src/hildon2/modest-address-book.c @@ -760,7 +760,6 @@ modest_address_book_check_names (ModestRecptEditor *recpt_editor, gchar *start_ptr, *end_ptr; gint start_pos, end_pos; const gchar *invalid_char_position = NULL; - gboolean store_address = FALSE; start_pos = (*((gint*) current_start->data)) + offset_delta; end_pos = (*((gint*) current_end->data)) + offset_delta; @@ -858,14 +857,13 @@ modest_address_book_check_names (ModestRecptEditor *recpt_editor, addr_list, ""); g_slist_free (addr_list); - store_address = TRUE; } } /* so, it seems a valid address */ /* note: adding it the to the addressbook if it did not exist yet, * and adding it to the recent_list */ - if (result && address_list && store_address) + if (result && address_list) *address_list = g_slist_prepend (*address_list, address); else g_free (address);