mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
Fix download progress title corruption
svn path=/trunk/netsurf/; revision=9647
This commit is contained in:
parent
4d1cd2ad64
commit
87695acd33
@ -87,6 +87,7 @@ struct gui_download_window *gui_download_window_create(const char *url,
|
||||
dw->size = total_size;
|
||||
dw->downloaded = 0;
|
||||
dw->bw = gui->shared->bw;
|
||||
dw->url = (char *)strdup((char *)url);
|
||||
|
||||
va[0] = (APTR)dw->downloaded;
|
||||
va[1] = (APTR)dw->size;
|
||||
@ -102,7 +103,7 @@ struct gui_download_window *gui_download_window_create(const char *url,
|
||||
|
||||
dw->objects[OID_MAIN] = WindowObject,
|
||||
WA_ScreenTitle,nsscreentitle,
|
||||
WA_Title, url,
|
||||
WA_Title, dw->url,
|
||||
WA_Activate, TRUE,
|
||||
WA_DepthGadget, TRUE,
|
||||
WA_DragBar, TRUE,
|
||||
@ -200,6 +201,7 @@ void gui_download_window_done(struct gui_download_window *dw)
|
||||
if(!dw) return;
|
||||
|
||||
bw->download = false;
|
||||
if(dw->url) free(dw->url);
|
||||
|
||||
if(dln = dw->dln)
|
||||
{
|
||||
|
@ -38,6 +38,7 @@ struct gui_download_window {
|
||||
struct dlnode *dln;
|
||||
struct browser_window *bw;
|
||||
struct fetch *fetch;
|
||||
char *url;
|
||||
};
|
||||
|
||||
int drag_save;
|
||||
|
Loading…
Reference in New Issue
Block a user