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.2.7~3 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=47ad2efc3fb6d6a5323a746df04ce1862644596c 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 9ec4b66..cf4b6aa 100644 --- a/src/hildon2/modest-address-book.c +++ b/src/hildon2/modest-address-book.c @@ -759,7 +759,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; @@ -857,14 +856,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);