summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/hotlist.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c
index e73dad450..6ec1c6793 100644
--- a/desktop/hotlist.c
+++ b/desktop/hotlist.c
@@ -604,15 +604,6 @@ static nserror hotlist_load(const char *path, bool *loaded)
ctx.title = NULL;
err = hotlist_load_directory(ul, &ctx);
- if (err != NSERROR_OK) {
- dom_node_unref(ul);
- dom_node_unref(body);
- dom_node_unref(html);
- dom_node_unref(document);
- warn_user("TreeLoadError",
- "(<html>...<body>...<ul> not found.)");
- return NSERROR_OK;
- }
if (ctx.title != NULL) {
dom_string_unref(ctx.title);
@@ -624,6 +615,11 @@ static nserror hotlist_load(const char *path, bool *loaded)
dom_node_unref(html);
dom_node_unref(document);
+ if (err != NSERROR_OK) {
+ warn_user("TreeLoadError", "(Failed building tree.)");
+ return NSERROR_OK;
+ }
+
return NSERROR_OK;
}