[project @ 2005-03-14 22:41:16 by rjw]

Stop a lack of hotlist causing hotlist menu preparation from crashing.

svn path=/import/netsurf/; revision=1537
This commit is contained in:
Richard Wilson 2005-03-14 22:41:16 +00:00
parent f6e1694894
commit 9caff49577

View File

@ -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;