aboutsummaryrefslogtreecommitdiffstats
path: root/embed
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 /embed
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.
Diffstat (limited to 'embed')
-rw-r--r--embed/downloader-view.c7
1 files changed, 5 insertions, 2 deletions
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;
}