From 45d3b9162c82f61b80d8257523d6530f8ddba5c3 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 28 Aug 2013 11:14:33 +0100 Subject: [PATCH] Move default title generation from _fini to _export. --- desktop/hotlist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desktop/hotlist.c b/desktop/hotlist.c index ae25e3fd6..e96678d86 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -916,6 +916,9 @@ nserror hotlist_export(const char *path, const char *title) if (fp == NULL) return NSERROR_SAVE_FAILED; + if (title == NULL) + title = "NetSurf hotlist"; + /* The Acorn Browse Hotlist format, which we mimic[*], is invalid HTML * claming to be valid. * [*] Why? */ @@ -1100,7 +1103,7 @@ nserror hotlist_fini(const char *path) LOG(("Finalising hotlist")); /* Save the hotlist */ - err = hotlist_export(path, "NetSurf hotlist"); + err = hotlist_export(path, NULL); if (err != NSERROR_OK) { warn_user("Couldn't save the hotlist.", 0); }