mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
[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:
parent
f6e1694894
commit
9caff49577
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user