summaryrefslogtreecommitdiff
path: root/amiga/menu.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-11-21 23:58:56 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-11-22 00:02:28 +0000
commitba9a049d7bca2e6fb761349d96d527cfb43f3b53 (patch)
treece341384fa68cb1edfd09b60915d512d919930f2 /amiga/menu.c
parent0c7dc95ddad16cb37a83eae2d56606c6642b4451 (diff)
downloadnetsurf-ba9a049d7bca2e6fb761349d96d527cfb43f3b53.tar.gz
netsurf-ba9a049d7bca2e6fb761349d96d527cfb43f3b53.tar.bz2
Simplify ami_history_open API and use correct call to get history object.
Diffstat (limited to 'amiga/menu.c')
-rw-r--r--amiga/menu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/amiga/menu.c b/amiga/menu.c
index 0c39a5502..88cccd405 100644
--- a/amiga/menu.c
+++ b/amiga/menu.c
@@ -963,8 +963,7 @@ static void ami_menu_item_browser_localhistory(struct Hook *hook, APTR window, s
struct gui_window_2 *gwin;
GetAttr(WINDOW_UserData, (Object *)window, (ULONG *)&gwin);
- if(gwin->gw->bw && gwin->gw->bw->history)
- ami_history_open(gwin->gw, gwin->gw->bw->history);
+ ami_history_open(gwin->gw);
}
static void ami_menu_item_browser_globalhistory(struct Hook *hook, APTR window, struct IntuiMessage *msg)