From ce3d99191842ded7687dc23c3ccb5f5ccc843558 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 31 Oct 2014 00:24:57 +0000 Subject: use nsurl_nice and remove url_nice change all callers over to using new API for generating nice filenames from a url and remove the old API. --- windows/download.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'windows/download.c') diff --git a/windows/download.c b/windows/download.c index 8d3cc446a..463a8368c 100644 --- a/windows/download.c +++ b/windows/download.c @@ -71,8 +71,9 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui) messages_get("UnknownSize") : human_friendly_bytesize(total_size); - if (url_nice(nsurl_access(url), &filename, false) != NSERROR_OK) + if (nsurl_nice(url, &filename, false) != NSERROR_OK) { filename = strdup(messages_get("UnknownFile")); + } if (filename == NULL) { warn_user(messages_get("NoMemory"), 0); free(w); -- cgit v1.2.3