summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Revol <revol@free.fr>2013-03-09 21:03:16 +0100
committerFran├žois Revol <revol@free.fr>2013-03-09 21:03:16 +0100
commitf3c0b643b6a6a08fb53e5ffa6a68a6eed9b91091 (patch)
treec71bd9f099847b6447a8ade69d84d85d62e28c7e
parent29f062e963de616518d3af4b5a31e030c8fd636a (diff)
downloadnetsurf-f3c0b643b6a6a08fb53e5ffa6a68a6eed9b91091.tar.gz
netsurf-f3c0b643b6a6a08fb53e5ffa6a68a6eed9b91091.tar.bz2
beos: Set the filename in the download file panel
-rw-r--r--beos/download.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/beos/download.cpp b/beos/download.cpp
index bdd85b5ac..e20281c2f 100644
--- a/beos/download.cpp
+++ b/beos/download.cpp
@@ -192,12 +192,13 @@ struct gui_download_window *gui_download_window_create(download_context *ctx,
download->window = new NSDownloadWindow(ctx);
// Also ask the user where to save the file
- // TODO inject the suggested name somehow
BMessage* msg = new BMessage(B_SAVE_REQUESTED);
BFilePanel* panel = new BFilePanel(B_SAVE_PANEL,
new BMessenger(download->window), NULL, 0, false);
+ panel->SetSaveText(download_context_get_filename(ctx));
+
msg->AddPointer("source", panel);
msg->AddPointer("dw", download);
panel->SetMessage(msg);