summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-09-12 11:27:45 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-09-12 11:27:45 +0100
commit177b46e873d29c4c5324467239bc80f11997c5e0 (patch)
tree16180dccc3b63702e8951d86575ce9bc0a7eb878
parentffb024f66d3f912392f1f25eb5c25a15fdd2c4a5 (diff)
downloadnetsurf-177b46e873d29c4c5324467239bc80f11997c5e0.tar.gz
netsurf-177b46e873d29c4c5324467239bc80f11997c5e0.tar.bz2
Add hotlist menu items at the correct offset
-rw-r--r--amiga/menu.c5
1 files changed, 2 insertions, 3 deletions
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;