summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2010-03-06 17:06:52 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2010-03-06 17:06:52 +0000
commit81e9d33a22d9550b76e9571f17a2f51b262d3c99 (patch)
tree8b3e66e0ce7e20267414e1a01b3d60c77591a64b /amiga
parent33be95d3284fbe9ab0c8ea94c5d34fc3c4246f46 (diff)
downloadnetsurf-81e9d33a22d9550b76e9571f17a2f51b262d3c99.tar.gz
netsurf-81e9d33a22d9550b76e9571f17a2f51b262d3c99.tar.bz2
Set file comment to URL *after* closing the file. This resolves the problem with the
comment not being set on some filesystems. svn path=/trunk/netsurf/; revision=10105
Diffstat (limited to 'amiga')
-rw-r--r--amiga/download.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/amiga/download.c b/amiga/download.c
index fde82679d..20647afab 100644
--- a/amiga/download.c
+++ b/amiga/download.c
@@ -200,8 +200,6 @@ void gui_download_window_done(struct gui_download_window *dw)
if(!dw) return;
- SetComment(dw->fname, dw->url);
-
if(option_download_notify)
{
Notify(ami_appid, APPNOTIFY_Title, messages_get("amiDownloadComplete"),
@@ -213,7 +211,6 @@ void gui_download_window_done(struct gui_download_window *dw)
}
bw->download = false;
- if(dw->url) free(dw->url);
if(dln = dw->dln)
{
@@ -226,6 +223,9 @@ void gui_download_window_done(struct gui_download_window *dw)
}
FClose(dw->fh);
+ SetComment(dw->fname, dw->url);
+ if(dw->url) free(dw->url);
+
DisposeObject(dw->objects[OID_MAIN]);
DelObject(dw->node);
if(queuedl) browser_window_download(bw,dln2->node.ln_Name,NULL);