* src/maemo/modest-msg-view-window.c:
authorJose Dapena Paz <jdapena@igalia.com>
Thu, 5 Jul 2007 20:32:12 +0000 (20:32 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Thu, 5 Jul 2007 20:32:12 +0000 (20:32 +0000)
        * (..._find_toolbar_search): invalidate search if there are no
          matches, just as we do with search complete (fixes NB#62257).

pmo-trunk-r2602

src/maemo/modest-msg-view-window.c

index ded5e35..d417495 100644 (file)
@@ -786,6 +786,8 @@ modest_msg_view_window_find_toolbar_search (GtkWidget *widget,
                                                 priv->last_search);
                if (!result) {
                        hildon_banner_show_information (NULL, NULL, dgettext("hildon-libs", "ckct_ib_find_no_matches"));
+                       g_free (priv->last_search);
+                       priv->last_search = NULL;
                } 
        } else {
                if (!modest_msg_view_search_next (MODEST_MSG_VIEW (priv->msg_view))) {