[epiphany] Remove download only after showing its notification
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Remove download only after showing its notification
- Date: Tue, 9 Mar 2010 15:40:42 +0000 (UTC)
commit 4a9440cdc83655f653029a8acf86ba805743c377
Author: Diego Escalante Urrelo <descalante igalia com>
Date: Tue Mar 2 18:28:57 2010 -0500
Remove download only after showing its notification
Otherwise we can hit a case where the DownloaderView no longer exists (and
hence the notification widget) because the removed download was the last one.
Bug #611635
embed/downloader-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index b7bfd76..cb2b5ab 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -499,7 +499,6 @@ update_download_row (DownloaderView *dv, WebKitDownload *download)
break;
}
- downloader_view_remove_download (dv, download);
#ifdef HAVE_LIBNOTIFY
downloaded = g_strdup_printf (_("The file â??%sâ?? has been downloaded."),
name);
@@ -512,6 +511,7 @@ update_download_row (DownloaderView *dv, WebKitDownload *download)
g_free (downloaded);
#endif
+ downloader_view_remove_download (dv, download);
return;
case WEBKIT_DOWNLOAD_STATUS_STARTED:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]