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 /embed | |
parent | f0e8ce4b0d56ecf4ba2e33fc281307a6f1292ef4 (diff) | |
download | gsoc2013-epiphany-442df294bdebca58532d91d99c6b3fce537b8c8c.tar.gz 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.c | 7 |
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; } |