From d14b65563a5e29936d98cd0d517f2a6d0138d74f Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 31 Mar 2009 21:19:48 +0200 Subject: [PATCH] Save files which are opened immediately to the temporary folder --- midori/midori-browser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index f15f403f..d1e8c217 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -1011,7 +1011,10 @@ midori_view_download_requested_cb (GtkWidget* view, gchar* filename; gchar* uri; - folder = katze_object_get_string (browser->settings, "download-folder"); + if (g_object_get_data (G_OBJECT (download), "open-download")) + folder = g_strdup (g_get_tmp_dir ()); + else + folder = katze_object_get_string (browser->settings, "download-folder"); filename = g_build_filename (folder, webkit_download_get_suggested_filename (download), NULL); g_free (folder);