aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/misc/ChangeLog4
-rw-r--r--widgets/misc/e-filter-bar.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 3b2ebbc669..b981d5aa2d 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-22 Jeffrey Stedfast <fejj@ximian.com>
+
+ * e-filter-bar.c (rule_editor_clicked): Validate the filter rule.
+
2001-03-18 Damon Chaplin <damon@ximian.com>
* e-cell-date-edit.c (e_cell_date_edit_show_time_invalid_warning):
diff --git a/widgets/misc/e-filter-bar.c b/widgets/misc/e-filter-bar.c
index 709a0dc837..587fd6c5a6 100644
--- a/widgets/misc/e-filter-bar.c
+++ b/widgets/misc/e-filter-bar.c
@@ -84,9 +84,12 @@ static void rule_editor_clicked(GtkWidget *w, int button, void *data)
case 0:
rule = gtk_object_get_data((GtkObject *)w, "rule");
if (rule) {
+ if (!filter_rule_validate (rule))
+ return;
+
item.text = rule->name;
item.id = efb->menu_base + efb->menu_rules->len;
-
+
g_ptr_array_add(efb->menu_rules, rule);
rule_context_add_rule(efb->context, rule);