[evolution-patches] Fix for typo in em_folder_tree_model_set_selected
- From: David Malcolm <dmalcolm redhat com>
- To: Evolution Patches <evolution-patches ximian com>
- Subject: [evolution-patches] Fix for typo in em_folder_tree_model_set_selected
- Date: Mon, 20 Sep 2004 14:10:48 -0400
Looks like there's a simple typo in em_folder_tree_model_set_selected
which I suspect could cause a crash on selecting a folder if the file
~/.evolution/mail/config/folder-tree-expand-state.xml didn't yet exist.
Attached is a simple patch to fix it.
Index: mail/em-folder-tree-model.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-folder-tree-model.c,v
retrieving revision 1.61
diff -u -p -r1.61 em-folder-tree-model.c
--- mail/em-folder-tree-model.c 24 Aug 2004 02:54:03 -0000 1.61
+++ mail/em-folder-tree-model.c 20 Sep 2004 18:01:06 -0000
@@ -1146,7 +1174,7 @@ em_folder_tree_model_set_selected (EMFol
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]