From f1dc83990b487869935f4ba0c033f2c459069d01 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 23 Mar 2001 01:24:15 +0000 Subject: Validate the filter rule. 2001-03-22 Jeffrey Stedfast * e-filter-bar.c (rule_editor_clicked): Validate the filter rule. svn path=/trunk/; revision=8909 --- widgets/misc/ChangeLog | 4 ++++ widgets/misc/e-filter-bar.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'widgets') 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 + + * e-filter-bar.c (rule_editor_clicked): Validate the filter rule. + 2001-03-18 Damon Chaplin * 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); -- cgit v1.2.3