Automatic add to contacts not working if "Check names" is performed
[modest] / src / hildon2 / modest-address-book.c
index 9ec4b66..cf4b6aa 100644 (file)
@@ -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);