diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-06-18 07:34:28 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-06-18 07:34:28 +0800 |
commit | 68f425c35b80ae73ffdd3e65ad7670dfee1b6ad4 (patch) | |
tree | 54851f40497e2684f902eaca005fcea231021ee1 /embed/mozilla | |
parent | 593e026cf2d2f1e5671f7ecb58330f4c5ab1ba99 (diff) | |
download | gsoc2013-epiphany-68f425c35b80ae73ffdd3e65ad7670dfee1b6ad4.tar gsoc2013-epiphany-68f425c35b80ae73ffdd3e65ad7670dfee1b6ad4.tar.gz gsoc2013-epiphany-68f425c35b80ae73ffdd3e65ad7670dfee1b6ad4.tar.bz2 gsoc2013-epiphany-68f425c35b80ae73ffdd3e65ad7670dfee1b6ad4.tar.lz gsoc2013-epiphany-68f425c35b80ae73ffdd3e65ad7670dfee1b6ad4.tar.xz gsoc2013-epiphany-68f425c35b80ae73ffdd3e65ad7670dfee1b6ad4.tar.zst gsoc2013-epiphany-68f425c35b80ae73ffdd3e65ad7670dfee1b6ad4.zip |
As first thing when a download stop, report it to the view.
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.
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/ProgressListener.cpp | 19 |
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 */ |