diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-08-20 06:36:50 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-08-20 06:36:50 +0800 |
commit | 442df294bdebca58532d91d99c6b3fce537b8c8c (patch) | |
tree | 19016cbf1537e994186fbe7f5c3a1d0d423d2554 | |
parent | f0e8ce4b0d56ecf4ba2e33fc281307a6f1292ef4 (diff) | |
download | gsoc2013-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-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/downloader-view.c | 7 |
2 files changed, 11 insertions, 2 deletions
@@ -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; } |