From 96df1d41383b092a7f5cc07634a7699e3210cc26 Mon Sep 17 00:00:00 2001 From: Michael Zucci Date: Mon, 29 Oct 2001 00:51:42 +0000 Subject: Fix enable undo logic. * rule-editor.c (rule_editor_add_undo): Fix enable undo logic. svn path=/trunk/; revision=14308 --- filter/ChangeLog | 1 + filter/rule-editor.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/filter/ChangeLog b/filter/ChangeLog index f0b4698be3..de02e3af47 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -26,6 +26,7 @@ (rule_editor_construct): Only enable a cancel button if EVOLUTION_RULE_UNDO is set. (rule_editor_add_undo): Only add if undo enabled. + (rule_editor_add_undo): Fix enable undo logic. * filter-rule.c (filter_rule_set_name): Emit a changed event if it changes. diff --git a/filter/rule-editor.c b/filter/rule-editor.c index 63986e6f2d..7f2d973954 100644 --- a/filter/rule-editor.c +++ b/filter/rule-editor.c @@ -519,7 +519,7 @@ rule_editor_add_undo(RuleEditor *re, int type, FilterRule *rule, int rank, int n { RuleEditorUndo *undo; - if (!re->undo_active && !enable_undo) { + if (!re->undo_active && enable_undo) { undo = g_malloc0(sizeof(*undo)); undo->rule = rule; undo->type = type; -- cgit v1.2.3