diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-02-29 18:10:45 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-02-29 18:10:45 +0000 |
commit | 64575f2aed9b8f205a6dc1c721e441197c1c2e1f (patch) | |
tree | 90b88009d41cb245fe19b39b797d0cd76acd2044 /amiga/tree.c | |
parent | 618e4570ef42b1d0521f7a1295ea7efde68fb17c (diff) | |
download | netsurf-64575f2aed9b8f205a6dc1c721e441197c1c2e1f.tar.gz netsurf-64575f2aed9b8f205a6dc1c721e441197c1c2e1f.tar.bz2 |
Avoid some crashing by disabling the update of the hotlist menu
This will be fixed properly when the menu code is re-written to use menuclass, as that supports dynamic updates.
Diffstat (limited to 'amiga/tree.c')
-rw-r--r-- | amiga/tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/amiga/tree.c b/amiga/tree.c index 5307c6e8d..fd0a5a61e 100644 --- a/amiga/tree.c +++ b/amiga/tree.c @@ -672,12 +672,14 @@ static void ami_tree_menu(struct treeview_window *twin) twin->menu[24].nm_Label = twin->menu_name[24]; twin->menu[25].nm_Type = NM_END; + twin->menu_name[25] = NULL; } } static void ami_tree_update_buttons(struct treeview_window *twin) { if(twin->type == AMI_TREE_SSLCERT) return; + if(twin->menu == NULL) return; if(twin->type != AMI_TREE_HOTLIST) { OffMenu(twin->win, AMI_TREE_MENU_NEWDIR); |