mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
Move default title generation from _fini to _export.
This commit is contained in:
parent
a61e74714d
commit
45d3b9162c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user