From b4e044f6c9769cb3538f1fb3accf7ad9671e1978 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 21 Nov 2014 14:30:09 +0000 Subject: Use browser_window_get_url() instead of getting URL from current content. --- amiga/context_menu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/amiga/context_menu.c b/amiga/context_menu.c index e5743dc62..e7cb07c49 100644 --- a/amiga/context_menu.c +++ b/amiga/context_menu.c @@ -769,7 +769,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved if (error == NSERROR_OK) { error = browser_window_create(BW_CREATE_CLONE | BW_CREATE_HISTORY, url, - hlcache_handle_get_url(gwin->gw->bw->current_content), + browser_window_get_url(gwin->gw->bw), gwin->gw->bw, &bw); nsurl_unref(url); @@ -787,7 +787,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved if (error == NSERROR_OK) { error = browser_window_create(BW_CREATE_CLONE | BW_CREATE_HISTORY | BW_CREATE_TAB, url, - hlcache_handle_get_url(gwin->gw->bw->current_content), + browser_window_get_url(gwin->gw->bw), gwin->gw->bw, &bw); nsurl_unref(url); @@ -807,7 +807,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved } else { browser_window_navigate(gwin->gw->bw, url, - hlcache_handle_get_url(gwin->gw->bw->current_content), + browser_window_get_url(gwin->gw->bw), BW_NAVIGATE_DOWNLOAD, NULL, NULL, @@ -821,7 +821,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved case CMID_SHOWOBJ: browser_window_navigate(gwin->gw->bw, hlcache_handle_get_url(userdata), - hlcache_handle_get_url(gwin->gw->bw->current_content), + browser_window_get_url(gwin->gw->bw), BW_NAVIGATE_HISTORY, NULL, NULL, @@ -837,7 +837,7 @@ static uint32 ami_context_menu_hook(struct Hook *hook,Object *item,APTR reserved } else { browser_window_navigate(gwin->gw->bw, url, - hlcache_handle_get_url(gwin->gw->bw->current_content), + browser_window_get_url(gwin->gw->bw), BW_NAVIGATE_HISTORY, NULL, NULL, -- cgit v1.2.3