[project @ 2006-01-01 15:46:43 by rjw]
Deleting from the global history resets URL data svn path=/import/netsurf/; revision=1926
This commit is contained in:
parent
5dff5b7a3c
commit
b02995aed9
|
@ -872,6 +872,7 @@ void tree_delete_node(struct tree *tree, struct node *node, bool siblings) {
|
|||
struct node *next;
|
||||
struct node *parent;
|
||||
struct node_element *element;
|
||||
struct url_content *data;
|
||||
|
||||
assert(node);
|
||||
|
||||
|
@ -893,6 +894,14 @@ void tree_delete_node(struct tree *tree, struct node *node, bool siblings) {
|
|||
((node->data.data != TREE_ELEMENT_TITLE) &&
|
||||
(node->data.data != TREE_ELEMENT_URL)))
|
||||
free(element->text);
|
||||
else if (node->data.data != TREE_ELEMENT_URL) {
|
||||
/* reset URL characteristics */
|
||||
data = url_store_find(element->text);
|
||||
if (data) {
|
||||
data->last_visit = 0;
|
||||
data->visits = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (element->sprite)
|
||||
free(element->sprite); /* \todo platform specific bits */
|
||||
|
|
Loading…
Reference in New Issue