summaryrefslogtreecommitdiff
path: root/frontends/riscos
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-04-28 12:10:30 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2017-04-28 12:10:30 +0100
commite431e6181b2cd480fc4ec2fb0d7f7474470d5669 (patch)
tree5bbb73bfaf8c02b64be8c2e3158019ecb54fcef0 /frontends/riscos
parentad3da6c1393ea69268f545e6581af668b5f337c9 (diff)
downloadnetsurf-e431e6181b2cd480fc4ec2fb0d7f7474470d5669.tar.gz
netsurf-e431e6181b2cd480fc4ec2fb0d7f7474470d5669.tar.bz2
RISC OS: Init core hotlist in read-only mode for external hotlist.
Note, the core hotlist is initialised in either normal or read-only modes. This is done once on application startup. Toggling the external hotlist option at runtime may cause loss of hotlist changes made during the session.
Diffstat (limited to 'frontends/riscos')
-rw-r--r--frontends/riscos/gui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontends/riscos/gui.c b/frontends/riscos/gui.c
index f84e08421..d3ce31ce5 100644
--- a/frontends/riscos/gui.c
+++ b/frontends/riscos/gui.c
@@ -1186,7 +1186,9 @@ static nserror gui_init(int argc, char** argv)
urldb_load(nsoption_charp(url_path));
urldb_load_cookies(nsoption_charp(cookie_file));
hotlist_init(nsoption_charp(hotlist_path),
- nsoption_charp(hotlist_save));
+ nsoption_bool(external_hotlists) ?
+ NULL :
+ nsoption_charp(hotlist_save));
/* Initialise with the wimp */
error = xwimp_initialise(wimp_VERSION_RO38, task_name,