aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/ProgressListener.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/embed/mozilla/ProgressListener.cpp b/embed/mozilla/ProgressListener.cpp
index abf0aec01..60e768a61 100644
--- a/embed/mozilla/ProgressListener.cpp
+++ b/embed/mozilla/ProgressListener.cpp
@@ -320,6 +320,14 @@ NS_IMETHODIMP GProgressListener::OnStateChange (nsIWebProgress *aWebProgress,
if (aStateFlags & nsIWebProgressListener::STATE_STOP)
{
+
+ if (!mNoDialog)
+ {
+ downloader_view_set_download_status (mDownloaderView,
+ DOWNLOAD_STATUS_COMPLETED,
+ (gpointer)this);
+ }
+
switch (mAction)
{
case ACTION_SAVEFORHELPER:
@@ -350,16 +358,7 @@ NS_IMETHODIMP GProgressListener::OnStateChange (nsIWebProgress *aWebProgress,
mozilla_embed_persist_completed
(MOZILLA_EMBED_PERSIST (mEphyPersist));
-
- return NS_OK;
- }
-
- if (!mNoDialog)
- {
- downloader_view_set_download_status (mDownloaderView,
- DOWNLOAD_STATUS_COMPLETED,
- (gpointer)this);
- }
+ }
}
/* done */