From 97ad0e0f21d3e90fc7fbd25340487a6fc8a05267 Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Mon, 14 Nov 2005 08:51:09 +0000 Subject: [PATCH] Use ses_load in post_yes. --- src/session/task.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/session/task.c b/src/session/task.c index edc44731b..7ef5d671a 100644 --- a/src/session/task.c +++ b/src/session/task.c @@ -87,17 +87,12 @@ ses_load(struct session *ses, struct uri *uri, unsigned char *target_frame, static void post_yes(struct task *task) { - struct session *ses = task->ses; - abort_preloading(task->ses, 0); - ses->loading.callback = (download_callback_T *) loading_callback; - ses->loading.data = task->ses; - ses->loading_uri = task->uri; /* XXX: Make the session inherit the URI. */ - memcpy(&ses->task, &task->session_task, sizeof(ses->task)); - - load_uri(ses->loading_uri, ses->referrer, &ses->loading, - PRI_MAIN, task->cache_mode, -1); + /* XXX: Make the session inherit the URI. */ + ses_load(task->ses, task->uri, task->session_task.target.frame, + task->session_task.target.location, task->cache_mode, + task->session_task.type); } static void