diff options
-rw-r--r-- | filter/ChangeLog | 2 | ||||
-rw-r--r-- | filter/rule-editor.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index f7ab149b1d..3f2cf98c34 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -3,6 +3,8 @@ * rule-editor.c: Some debug printf fixes for printf's that dont like null %s's. Fixed previous fix. + (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. 2001-10-28 <NotZed@Ximian.com> 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; |