diff options
Diffstat (limited to 'filter/filter-rule.c')
-rw-r--r-- | filter/filter-rule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/filter/filter-rule.c b/filter/filter-rule.c index 180b070cb1..17173a1c97 100644 --- a/filter/filter-rule.c +++ b/filter/filter-rule.c @@ -479,8 +479,10 @@ more_parts (GtkWidget *button, struct _rule_data *data) } /* set the "Remove criterion" button sensitive */ - w = gtk_object_get_data (GTK_OBJECT (button), "remove"); - gtk_widget_set_sensitive (w, TRUE); + if (g_list_length (data->fr->parts) > 1) { + w = gtk_object_get_data (GTK_OBJECT (button), "remove"); + gtk_widget_set_sensitive (w, TRUE); + } } static void |