aboutsummaryrefslogtreecommitdiffstats
path: root/filter/rule-editor.c
diff options
context:
space:
mode:
author9 <NotZed@Ximian.com>2001-10-29 09:40:59 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-29 09:40:59 +0800
commit777dc4018ac11b565eeacd9967670989bd28d297 (patch)
treec64ecaa851dbb249288befb16db4f74b33fbc8d1 /filter/rule-editor.c
parent7b02e2e055f79a3bc942c927be5c1f1b8b7f9d14 (diff)
downloadgsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar
gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar.gz
gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar.bz2
gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar.lz
gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar.xz
gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.tar.zst
gsoc2013-evolution-777dc4018ac11b565eeacd9967670989bd28d297.zip
Need to ref rule since add doesn't. This doesn't crash anymore but doesn't
2001-10-29 <NotZed@Ximian.com> * rule-editor.c: (rule_editor_play_undo): Need to ref rule since add doesn't. This doesn't crash anymore but doesn't seem to do everything right either. svn path=/trunk/; revision=14312
Diffstat (limited to 'filter/rule-editor.c')
-rw-r--r--filter/rule-editor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/rule-editor.c b/filter/rule-editor.c
index b14b265bb4..1c705a5e15 100644
--- a/filter/rule-editor.c
+++ b/filter/rule-editor.c
@@ -564,6 +564,7 @@ rule_editor_play_undo(RuleEditor *re)
break;
case RULE_EDITOR_LOG_REMOVE:
printf("Undoing remove on rule '%s'\n", undo->rule->name);
+ gtk_object_ref((GtkObject *)undo->rule);
rule_context_add_rule(re->context, undo->rule);
rule_context_rank_rule(re->context, undo->rule, undo->rank);
break;