diff options
author | Diego Escalante Urrelo <descalante@igalia.com> | 2010-03-03 07:28:57 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <descalante@igalia.com> | 2010-03-09 23:38:26 +0800 |
commit | 4a9440cdc83655f653029a8acf86ba805743c377 (patch) | |
tree | a5a9151725d256320a99b7d399c1c59b3c530389 | |
parent | 1e1799a6c26cf011d3cc545e83f67d3a6b68e81e (diff) | |
download | gsoc2013-epiphany-4a9440cdc83655f653029a8acf86ba805743c377.tar gsoc2013-epiphany-4a9440cdc83655f653029a8acf86ba805743c377.tar.gz gsoc2013-epiphany-4a9440cdc83655f653029a8acf86ba805743c377.tar.bz2 gsoc2013-epiphany-4a9440cdc83655f653029a8acf86ba805743c377.tar.lz gsoc2013-epiphany-4a9440cdc83655f653029a8acf86ba805743c377.tar.xz gsoc2013-epiphany-4a9440cdc83655f653029a8acf86ba805743c377.tar.zst gsoc2013-epiphany-4a9440cdc83655f653029a8acf86ba805743c377.zip |
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
-rw-r--r-- | 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 b7bfd766e..cb2b5ab9f 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: |