From e431e6181b2cd480fc4ec2fb0d7f7474470d5669 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 28 Apr 2017 12:10:30 +0100 Subject: 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. --- frontends/riscos/gui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- cgit v1.2.3