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,6 +1011,9 @@ midori_view_download_requested_cb (GtkWidget* view,
gchar* filename; gchar* filename;
gchar* uri; gchar* uri;
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"); 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);