Save files which are opened immediately to the temporary folder
This commit is contained in:
parent
b083c5bbd0
commit
d14b65563a
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue