Move default title generation from _fini to _export.

This commit is contained in:
Michael Drake 2013-08-28 11:14:33 +01:00
parent a61e74714d
commit 45d3b9162c

View File

@ -916,6 +916,9 @@ nserror hotlist_export(const char *path, const char *title)
if (fp == NULL) if (fp == NULL)
return NSERROR_SAVE_FAILED; return NSERROR_SAVE_FAILED;
if (title == NULL)
title = "NetSurf hotlist";
/* The Acorn Browse Hotlist format, which we mimic[*], is invalid HTML /* The Acorn Browse Hotlist format, which we mimic[*], is invalid HTML
* claming to be valid. * claming to be valid.
* [*] Why? */ * [*] Why? */
@ -1100,7 +1103,7 @@ nserror hotlist_fini(const char *path)
LOG(("Finalising hotlist")); LOG(("Finalising hotlist"));
/* Save the hotlist */ /* Save the hotlist */
err = hotlist_export(path, "NetSurf hotlist"); err = hotlist_export(path, NULL);
if (err != NSERROR_OK) { if (err != NSERROR_OK) {
warn_user("Couldn't save the hotlist.", 0); warn_user("Couldn't save the hotlist.", 0);
} }