aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r--mail/em-folder-tree-model.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 4f1a8dda67..15be6d5cfb 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -1146,7 +1146,7 @@ em_folder_tree_model_set_selected (EMFolderTreeModel *model, const char *uri)
if (!model->state->children) {
root = xmlNewDocNode (model->state, NULL, "tree-state", NULL);
- xmlDocSetRootElement (model->state, node);
+ xmlDocSetRootElement (model->state, root);
} else {
root = model->state->children;
}