* src/maemo/modest-address-book.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 20 Sep 2007 17:28:07 +0000 (17:28 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 20 Sep 2007 17:28:07 +0000 (17:28 +0000)
        * (modest_address_book_check_names): now, if the string is not
          empty and we didn't resolve any address, we return an error
          information banner (fixes NB#66116).

pmo-trunk-r3375

src/maemo/modest-address-book.c

index 9a08cd2..711dd0f 100644 (file)
@@ -666,7 +666,12 @@ modest_address_book_check_names (ModestRecptEditor *recpt_editor, gboolean updat
                        gtk_widget_destroy (banner);
                        g_object_unref (G_OBJECT(banner));
                }
-               return TRUE;
+               if (last_length != 0) {
+                       hildon_banner_show_information (NULL, NULL, _("mcen_nc_no_matching_contacts"));
+                       return FALSE;
+               } else {
+                       return TRUE;
+               }
        }
 
        current_start = start_indexes;