From: Christian Dywan Date: Tue, 31 Mar 2009 19:19:48 +0000 (+0200) Subject: Save files which are opened immediately to the temporary folder X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d14b65563a5e29936d98cd0d517f2a6d0138d74f;p=midori Save files which are opened immediately to the temporary folder --- 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);