Save files which are opened immediately to the temporary folder

This commit is contained in:
Christian Dywan 2009-03-31 21:19:48 +02:00
parent b083c5bbd0
commit d14b65563a

View file

@ -1011,7 +1011,10 @@ midori_view_download_requested_cb (GtkWidget* view,
gchar* filename; gchar* filename;
gchar* uri; 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, filename = g_build_filename (folder,
webkit_download_get_suggested_filename (download), NULL); webkit_download_get_suggested_filename (download), NULL);
g_free (folder); g_free (folder);