aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-08-20 06:36:50 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-08-20 06:36:50 +0800
commit442df294bdebca58532d91d99c6b3fce537b8c8c (patch)
tree19016cbf1537e994186fbe7f5c3a1d0d423d2554
parentf0e8ce4b0d56ecf4ba2e33fc281307a6f1292ef4 (diff)
downloadgsoc2013-epiphany-442df294bdebca58532d91d99c6b3fce537b8c8c.tar
gsoc2013-epiphany-442df294bdebca58532d91d99c6b3fce537b8c8c.tar.gz
gsoc2013-epiphany-442df294bdebca58532d91d99c6b3fce537b8c8c.tar.bz2
gsoc2013-epiphany-442df294bdebca58532d91d99c6b3fce537b8c8c.tar.lz
gsoc2013-epiphany-442df294bdebca58532d91d99c6b3fce537b8c8c.tar.xz
gsoc2013-epiphany-442df294bdebca58532d91d99c6b3fce537b8c8c.tar.zst
gsoc2013-epiphany-442df294bdebca58532d91d99c6b3fce537b8c8c.zip
Do not try to remove completed downloads, fixes a crash.
2003-08-20 Marco Pesenti Gritti <marco@gnome.org> * embed/downloader-view.c: (delete_pending_foreach): Do not try to remove completed downloads, fixes a crash.
-rw-r--r--ChangeLog6
-rw-r--r--embed/downloader-view.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 80fd59802..7b78717b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-20 Marco Pesenti Gritti <marco@gnome.org>
+
+ * embed/downloader-view.c: (delete_pending_foreach):
+
+ Do not try to remove completed downloads, fixes a crash.
+
2003-08-19 Marco Pesenti Gritti <marco@gnome.org>
* lib/widgets/ephy-node-view.c: (drag_motion_cb), (drag_drop_cb),
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 174de53bf..70a930fd9 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -987,8 +987,11 @@ delete_pending_foreach (gpointer persist_object,
DownloadDetails *details,
DownloaderView *dv)
{
- g_signal_emit (G_OBJECT (dv), downloader_view_signals[DOWNLOAD_REMOVE],
- 0, persist_object);
+ if (details->status != DOWNLOAD_STATUS_COMPLETED)
+ {
+ g_signal_emit (G_OBJECT (dv), downloader_view_signals[DOWNLOAD_REMOVE],
+ 0, persist_object);
+ }
return TRUE;
}