aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorMichael Zucci <zucchi@src.gnome.org>2001-10-29 08:51:42 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-29 08:51:42 +0800
commit96df1d41383b092a7f5cc07634a7699e3210cc26 (patch)
treefe8db0eba5c5562b078fce74c31c893960e4893c /filter
parente554710d002f2d1843c9783cd2a727ce7dd51af2 (diff)
downloadgsoc2013-evolution-96df1d41383b092a7f5cc07634a7699e3210cc26.tar
gsoc2013-evolution-96df1d41383b092a7f5cc07634a7699e3210cc26.tar.gz
gsoc2013-evolution-96df1d41383b092a7f5cc07634a7699e3210cc26.tar.bz2
gsoc2013-evolution-96df1d41383b092a7f5cc07634a7699e3210cc26.tar.lz
gsoc2013-evolution-96df1d41383b092a7f5cc07634a7699e3210cc26.tar.xz
gsoc2013-evolution-96df1d41383b092a7f5cc07634a7699e3210cc26.tar.zst
gsoc2013-evolution-96df1d41383b092a7f5cc07634a7699e3210cc26.zip
Fix enable undo logic.
* rule-editor.c (rule_editor_add_undo): Fix enable undo logic. svn path=/trunk/; revision=14308
Diffstat (limited to 'filter')
-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;