From f9ac1af55dadab498debebe3e7d2f73a82e22c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Wed, 3 Jun 2009 00:59:41 +0200 Subject: [PATCH] Show the suggested filename in the Save As dialog for downloads --- midori/midori-browser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 217dd1d1..534ec84d 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1277,6 +1277,8 @@ midori_view_download_requested_cb (GtkWidget* view, gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (browser)); /* FIXME: Remember the last folder gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), last_dir); */ + gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (dialog), + webkit_download_get_suggested_filename (download)); gtk_widget_show (dialog); g_signal_connect (dialog, "response", G_CALLBACK (midori_view_download_save_as_response_cb), download);