Manually start save-as type downloads

This commit is contained in:
Christian Dywan 2012-07-08 23:04:56 +02:00
parent 57397ee229
commit 3bdf2e7b73
1 changed files with 2 additions and 0 deletions

View File

@ -1442,6 +1442,7 @@ midori_view_download_requested_cb (GtkWidget* view,
g_signal_connect (download, "notify::status",
G_CALLBACK (midori_browser_download_status_cb), GTK_WIDGET (browser));
g_free (destination_uri);
webkit_download_start (download);
}
else if (!webkit_download_get_destination_uri (download))
{
@ -1495,6 +1496,7 @@ midori_view_download_requested_cb (GtkWidget* view,
midori_browser_prepare_download (browser, download, destination_uri);
g_free (destination_uri);
}
webkit_download_start (download);
}
/* Close empty tabs due to download links with a target */