diff options
Diffstat (limited to 'amiga/tree.c')
-rwxr-xr-x | amiga/tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/amiga/tree.c b/amiga/tree.c index da7e303bb..f2ef3cc83 100755 --- a/amiga/tree.c +++ b/amiga/tree.c @@ -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); } |