aboutsummaryrefslogtreecommitdiffstats
path: root/filter/e-rule-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter/e-rule-editor.c')
-rw-r--r--filter/e-rule-editor.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/filter/e-rule-editor.c b/filter/e-rule-editor.c
index 59f12de672..10126bc42c 100644
--- a/filter/e-rule-editor.c
+++ b/filter/e-rule-editor.c
@@ -70,20 +70,20 @@ rule_editor_add_undo (ERuleEditor *editor,
gint rank,
gint newrank)
{
- ERuleEditorUndo *undo;
-
- if (!editor->undo_active && enable_undo) {
- undo = g_malloc0 (sizeof (*undo));
- undo->rule = rule;
- undo->type = type;
- undo->rank = rank;
- undo->newrank = newrank;
-
- undo->next = editor->undo_log;
- editor->undo_log = undo;
- } else {
- g_object_unref (rule);
- }
+ ERuleEditorUndo *undo;
+
+ if (!editor->undo_active && enable_undo) {
+ undo = g_malloc0 (sizeof (*undo));
+ undo->rule = rule;
+ undo->type = type;
+ undo->rank = rank;
+ undo->newrank = newrank;
+
+ undo->next = editor->undo_log;
+ editor->undo_log = undo;
+ } else {
+ g_object_unref (rule);
+ }
}
static void