diff options
-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; } |