--- gnucash-2.2.1/src/gnome-search/dialog-search.c.orig	2007-10-24 23:30:57.000000000 +0200
+++ gnucash-2.2.1/src/gnome-search/dialog-search.c	2007-10-24 23:30:17.000000000 +0200
@@ -446,6 +446,8 @@
   GList *l;
   gboolean ret;
 
+  if (g_list_length (sw->crit_list) < 1)
+    return TRUE;
   l = g_list_last (sw->crit_list);
   data = l->data;
   ret = gnc_search_core_type_validate (data->element);
@@ -523,7 +525,7 @@
   GtkWidget *element;
   struct _elem_data *data;
 
-  if (g_list_length (sw->crit_list) < 2)
+  if (g_list_length (sw->crit_list) < 1)
     return;
 
   element = g_object_get_data (G_OBJECT (button), "element");
