]> spindle.queued.net Git - midori/commitdiff
Save files which are opened immediately to the temporary folder
authorChristian Dywan <christian@twotoasts.de>
Tue, 31 Mar 2009 19:19:48 +0000 (21:19 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 31 Mar 2009 19:19:48 +0000 (21:19 +0200)
midori/midori-browser.c

index f15f403fa93505ca5fe8ff65b3798cc7b6667b5f..d1e8c217def269c18dc2a341a169e3bfad020b6a 100644 (file)
@@ -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);