diff options
Diffstat (limited to 'riscos/menus.c')
-rw-r--r-- | riscos/menus.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/riscos/menus.c b/riscos/menus.c index 8b6163f39..9c7fd4347 100644 --- a/riscos/menus.c +++ b/riscos/menus.c @@ -2008,6 +2008,9 @@ void ro_gui_menu_prepare_hotlist(void) { bool selection = false; struct node *single = NULL; + if (!hotlist_tree) + return; + if (hotlist_tree->root->child) { single = tree_get_selected_node(hotlist_tree->root->child); selection = tree_has_selection(hotlist_tree->root->child); @@ -2068,6 +2071,9 @@ void ro_gui_menu_prepare_global_history(void) { bool reopen = false; bool selection = false; + if (!global_history_tree) + return; + if (global_history_tree->root->child) { selection = tree_has_selection(global_history_tree->root->child); global_history_menu->entries[2].icon_flags &= ~wimp_ICON_SHADED; |