mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
Fixup for urldb change.
This commit is contained in:
parent
a668f327ba
commit
6cea9a3c09
@ -106,7 +106,7 @@ void gui_401login_open(nsurl *url, const char *realm,
|
||||
WINDOW_Position, WPOS_CENTERSCREEN,
|
||||
WINDOW_ParentGroup, lw->objects[GID_MAIN] = VGroupObject,
|
||||
LAYOUT_AddChild, StringObject,
|
||||
STRINGA_TextVal,lw->lwc_string_data(host),
|
||||
lwc_string_data(STRINGA_TextVal,lw->host),
|
||||
GA_ReadOnly,TRUE,
|
||||
StringEnd,
|
||||
CHILD_Label, LabelObject,
|
||||
|
@ -283,10 +283,14 @@ void ami_tree_drag_icon_show(struct treeview_window *twin)
|
||||
{
|
||||
if(node && (url = tree_url_node_get_url(node)))
|
||||
{
|
||||
if(data = urldb_get_url_data(url))
|
||||
nsurl *nsurl;
|
||||
if (nsurl_create(url, &nsurl) != NSERROR_OK)
|
||||
return;
|
||||
if(data = urldb_get_url_data(nsurl))
|
||||
{
|
||||
type = ami_content_type_to_file_type(data->type);
|
||||
}
|
||||
nsurl_unref(nsurl);
|
||||
}
|
||||
ami_drag_icon_show(twin->win, type);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user