diff options
author | Ole Loots <ole@monochrom.net> | 2013-01-17 02:04:43 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-01-17 02:04:43 +0100 |
commit | 7cf178f286f325c4dc45f1e4602545f5b9017bab (patch) | |
tree | f659525bedc8c62336e7ee3585d580b82906f498 /atari/download.c | |
parent | 6a62cde9d63c829b1e0b7d61c43f645cfea06534 (diff) | |
download | netsurf-7cf178f286f325c4dc45f1e4602545f5b9017bab.tar.gz netsurf-7cf178f286f325c4dc45f1e4602545f5b9017bab.tar.bz2 |
Display download filename in download confirm message.
Diffstat (limited to 'atari/download.c')
-rwxr-xr-x | atari/download.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/atari/download.c b/atari/download.c index a94ec8afd..d20fd882d 100755 --- a/atari/download.c +++ b/atari/download.c @@ -257,6 +257,7 @@ struct gui_download_window * gui_download_window_create(download_context *ctx, struct gui_download_window * gdw; int dlgres = 0; OBJECT * tree = get_tree(DOWNLOAD); + char alert[200]; LOG(("Creating download window for gui window: %p", parent)); @@ -269,7 +270,9 @@ struct gui_download_window * gui_download_window_create(download_context *ctx, } filename = download_context_get_filename((const download_context*)ctx); - dlgres = form_alert(2, "[2][Accept download?][Yes|Save as...|No]");
+ snprintf(alert, 200, "[2][Accept download?|%.*s][Yes|Save as...|No]", + 40,filename); + dlgres = form_alert(2, alert);
if( dlgres == 3){
return( NULL );
} |