diff options
author | Gustavo Noronha Silva <gns@src.gnome.org> | 2009-03-26 23:29:32 +0800 |
---|---|---|
committer | Gustavo Noronha Silva <gns@src.gnome.org> | 2009-03-26 23:29:32 +0800 |
commit | a551a219577761befd9450f487394013bad857d2 (patch) | |
tree | 426544de183f7f23838b8a094c07ca57d25a24ff /embed | |
parent | bd770032b47bdabac773b1158dde0dd9f76d2b20 (diff) | |
download | gsoc2013-epiphany-a551a219577761befd9450f487394013bad857d2.tar gsoc2013-epiphany-a551a219577761befd9450f487394013bad857d2.tar.gz gsoc2013-epiphany-a551a219577761befd9450f487394013bad857d2.tar.bz2 gsoc2013-epiphany-a551a219577761befd9450f487394013bad857d2.tar.lz gsoc2013-epiphany-a551a219577761befd9450f487394013bad857d2.tar.xz gsoc2013-epiphany-a551a219577761befd9450f487394013bad857d2.tar.zst gsoc2013-epiphany-a551a219577761befd9450f487394013bad857d2.zip |
Remove downloading files when cancelling the download.
svn path=/trunk/; revision=8940
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)); } |