From dd6d1ce527ec4c8c1999f7fc646cea755ac00ca7 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 10 Nov 2011 13:07:47 +0000 Subject: Make default hotlist folder persistent across sessions svn path=/trunk/netsurf/; revision=13141 --- desktop/tree_url_node.c | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'desktop/tree_url_node.c') diff --git a/desktop/tree_url_node.c b/desktop/tree_url_node.c index c1e72bfc4..fee361b85 100644 --- a/desktop/tree_url_node.c +++ b/desktop/tree_url_node.c @@ -576,6 +576,7 @@ static void tree_url_load_directory(xmlNode *ul, struct tree *tree, char *title; struct node *dir; xmlNode *xmlnode; + xmlChar *id; assert(ul != NULL); assert(directory != NULL); @@ -595,6 +596,7 @@ static void tree_url_load_directory(xmlNode *ul, struct tree *tree, } else if (strcmp((const char *)xmlnode->name, "h4") == 0) { /* directory */ + bool dir_is_default = false; title = (char *) xmlNodeGetContent(xmlnode ); if (!title) { warn_user("TreeLoadError", "(Empty

" @@ -613,6 +615,13 @@ static void tree_url_load_directory(xmlNode *ul, struct tree *tree, warn_user("TreeLoadError", "(Expected " "