mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
[project @ 2005-03-20 23:02:00 by rjw]
URL nodes without a title use the associated URL. svn path=/import/netsurf/; revision=1563
This commit is contained in:
parent
b718ee9158
commit
dfdf4741f8
@ -980,8 +980,9 @@ struct node *tree_create_URL_node(struct node *parent, const char *title,
|
|||||||
struct node *node;
|
struct node *node;
|
||||||
struct node_element *element;
|
struct node_element *element;
|
||||||
|
|
||||||
assert(title);
|
|
||||||
assert(url);
|
assert(url);
|
||||||
|
if (!title)
|
||||||
|
title = url;
|
||||||
|
|
||||||
node = tree_create_leaf_node(parent, title);
|
node = tree_create_leaf_node(parent, title);
|
||||||
if (!node)
|
if (!node)
|
||||||
@ -1035,8 +1036,9 @@ struct node *tree_create_URL_node_brief(struct node *parent, const char *title,
|
|||||||
struct node *node;
|
struct node *node;
|
||||||
struct node_element *element;
|
struct node_element *element;
|
||||||
|
|
||||||
assert(title);
|
|
||||||
assert(url);
|
assert(url);
|
||||||
|
if (!title)
|
||||||
|
title = url;
|
||||||
|
|
||||||
node = tree_create_leaf_node(parent, title);
|
node = tree_create_leaf_node(parent, title);
|
||||||
if (!node)
|
if (!node)
|
||||||
|
Loading…
Reference in New Issue
Block a user