mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 15:29:45 +03:00
beos: Set the filename in the download file panel
This commit is contained in:
parent
29f062e963
commit
f3c0b643b6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user