From 177b46e873d29c4c5324467239bc80f11997c5e0 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 12 Sep 2013 11:27:45 +0100 Subject: Add hotlist menu items at the correct offset --- amiga/menu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'amiga') diff --git a/amiga/menu.c b/amiga/menu.c index d8e49fc56..50f48a919 100644 --- a/amiga/menu.c +++ b/amiga/menu.c @@ -590,7 +590,6 @@ static nserror ami_menu_hotlist_folder_enter_cb(void *ctx, const char *title) if((menu_ctx->level == 0) && (strcmp(title, messages_get("HotlistMenu")) == 0)) menu_ctx->in_menu = true; } - menu_ctx->level++; return NSERROR_OK; } @@ -598,7 +597,7 @@ static nserror ami_menu_hotlist_folder_enter_cb(void *ctx, const char *title) static nserror ami_menu_hotlist_address_cb(void *ctx, nsurl *url, const char *title) { struct ami_hotlist_ctx *menu_ctx = (struct ami_hotlist_ctx *)ctx; - + if(menu_ctx->in_menu == true) ami_menu_hotlist_add(menu_ctx, title, url, false); @@ -622,7 +621,7 @@ static nserror ami_menu_scan(struct tree *tree, struct gui_window_2 *gwin) struct ami_hotlist_ctx ctx; ctx.level = 0; - ctx.item = 0; + ctx.item = AMI_MENU_HOTLIST; ctx.in_menu = false; ctx.gw = gwin; -- cgit v1.2.3