From 6d0746987d407f09d500557d9512850477687505 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 18 Oct 2014 18:01:39 +0100 Subject: Use core API to acquire content, rather than poking inside the bw. --- riscos/window.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'riscos') diff --git a/riscos/window.c b/riscos/window.c index 123b32322..b28db8074 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -4013,11 +4013,16 @@ void ro_gui_window_action_local_history(struct gui_window *g) void ro_gui_window_action_save(struct gui_window *g, gui_save_type save_type) { - if (g == NULL || g->bw == NULL || g->bw->current_content == NULL) + hlcache_handle *h; + + if (g == NULL || g->bw == NULL || !browser_window_has_content(g->bw)) + return; + + h = browser_window_get_content(g->bw); + if (h == NULL) return; - ro_gui_save_prepare(save_type, g->bw->current_content, - NULL, NULL, NULL); + ro_gui_save_prepare(save_type, h, NULL, NULL, NULL); ro_gui_dialog_open_persistent(g->window, dialog_saveas, true); } -- cgit v1.2.3