diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/downloader-view.c | 1 | ||||
-rw-r--r-- | embed/webkit/webkit-embed.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c index f8fe7f94e..b15459204 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -996,6 +996,7 @@ download_dialog_stop (DownloaderView *dv) { if (!l->data) continue; webkit_download_cancel ((WebKitDownload*) l->data); + ephy_file_delete_uri (webkit_download_get_destination_uri ((WebKitDownload*) l->data)); g_object_unref (l->data); } diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index cd1d1b11a..1886a20c5 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -425,8 +425,10 @@ download_requested_dialog_response_cb (GtkDialog *dialog, dview = EPHY_DOWNLOADER_VIEW (ephy_embed_shell_get_downloader_view (embed_shell)); downloader_view_add_download (dview, download); } - else + else { webkit_download_cancel (download); + ephy_file_delete_uri (webkit_download_get_destination_uri (download)); + } gtk_widget_destroy (GTK_WIDGET (dialog)); } |