diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | embed/mozilla/ProgressListener.cpp | 19 |
2 files changed, 16 insertions, 10 deletions
@@ -1,3 +1,10 @@ +2003-06-18 Marco Pesenti Gritti <marco@it.gnome.org> + + * embed/mozilla/ProgressListener.cpp: + + As first thing when a download stop, report it to the + view. + 2003-06-17 Christian Persch <chpe@cvs.gnome.org> * src/prefs-dialog.c: 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 */ |