aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2012-08-02 16:11:29 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2012-08-02 16:14:20 +0800
commit55b5a767c59f5a3010522dfcee89a773510ab8c6 (patch)
treed528a1043bf72fc3f5362cb1abe04c322eee598d
parent9c257893c9a93ea8732cf360c5d452365e60317f (diff)
downloadgsoc2013-epiphany-55b5a767c59f5a3010522dfcee89a773510ab8c6.tar.gz
gsoc2013-epiphany-55b5a767c59f5a3010522dfcee89a773510ab8c6.tar.zst
gsoc2013-epiphany-55b5a767c59f5a3010522dfcee89a773510ab8c6.zip
popup-commands: don't cancel a download that hasn't even been started
Cancelling the "save link as" dialog is calling ephy_download_cancel() even when ephy_download_start() has not been called. This causes a critical warning in webkit. https://bugzilla.gnome.org/show_bug.cgi?id=681010
-rw-r--r--src/popup-commands.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c
index bc2a4fb18..a0521383a 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -201,10 +201,6 @@ response_cb (GtkDialog *dialog,
ephy_download_start (download);
g_free (uri);
}
- else
- {
- ephy_download_cancel (download);
- }
gtk_widget_destroy (GTK_WIDGET (dialog));
}