diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-28 11:14:33 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-08-28 11:14:33 +0100 |
commit | 45d3b9162c82f61b80d8257523d6530f8ddba5c3 (patch) | |
tree | b4b5e50f0d42a786b07062f8be666d529dc8ed87 /desktop/hotlist.c | |
parent | a61e74714d99e7693f41a2148868563abca05659 (diff) | |
download | netsurf-45d3b9162c82f61b80d8257523d6530f8ddba5c3.tar.gz netsurf-45d3b9162c82f61b80d8257523d6530f8ddba5c3.tar.bz2 |
Move default title generation from _fini to _export.
Diffstat (limited to 'desktop/hotlist.c')
-rw-r--r-- | desktop/hotlist.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); } |