]> git.armaanb.net Git - chorizo.git/commit
Minor improvement to changed_download_progress()
authorPeter Hofmann <scm@uninformativ.de>
Sat, 9 Aug 2014 16:25:30 +0000 (18:25 +0200)
committerPeter Hofmann <scm@uninformativ.de>
Sat, 9 Aug 2014 16:25:30 +0000 (18:25 +0200)
commit12606cb8458f5d23f0e407f08eb31b492dd2b4ea
tree623a1e3f58ab6404218f1d19391380be1790e117
parent7e42c6b79fdd54961401c9be97f20e507eb3b2a0
Minor improvement to changed_download_progress()

I checked WebKit's source code: webkit_download_get_destination_uri()
never returns NULL in lariza. It's because we set the destination URI in
the signal handler for the download request.

If g_filename_from_uri() really returned NULL for some reason, then it'd
be just plain wrong to announce the "suggested file name", because we
might be saving the download ... somewhere else. I doubt this function
ever returns NULL in lariza, though, but you never know.

So, now, the download manager will correctly show the URI if the
destination URI is "unknown".
browser.c