beos: Set the filename in the download file panel

This commit is contained in:
François Revol 2013-03-09 21:03:16 +01:00
parent 29f062e963
commit f3c0b643b6

View File

@ -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);