aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filter/ChangeLog1
-rw-r--r--filter/rule-editor.c2
2 files changed, 2 insertions, 1 deletions
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;