summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/bastyp/sfxhtml.cxx24
1 files changed, 1 insertions, 23 deletions
diff --git a/sfx2/source/bastyp/sfxhtml.cxx b/sfx2/source/bastyp/sfxhtml.cxx
index bc33faba52db..78e29be661cf 100644
--- a/sfx2/source/bastyp/sfxhtml.cxx
+++ b/sfx2/source/bastyp/sfxhtml.cxx
@@ -253,29 +253,7 @@ void SfxHTMLParser::StartFileDownload( const String& rURL, int nToken,
pSh->RegisterTransfer( *pDLMedium );
}
- // Push Download (Note: Can also be synchronous).
- if ( sal_True /*pMedium->GetDoneLink() == Link()*/ )
- pDLMedium->DownLoad();
- else
- {
- // Set Downloading-Flag to TRUE. When we get into the Pending-status
- // we will then also have Data-Available-Links.
- SetDownloadingFile( sal_True );
- pDLMedium->DownLoad( STATIC_LINK( this, SfxHTMLParser, FileDownloadDone ) );
-
- // If the Downloading-Flag is still set downloading will be done
- // asynchronously. We will go into Pedning-status and wait there.
- // As long as we are there all calls to the Data-Link Avaialble are
- // locked.
- if( IsDownloadingFile() )
- {
- // Unfreeze the current state and go into the Pending-Status.
- // When the download is completed or aborted, a Continue with
- // the transfer token will be pushed by passedNewDataRead.
- SaveState( nToken );
- eState = SVPAR_PENDING;
- }
- }
+ pDLMedium->DownLoad();
}
sal_Bool SfxHTMLParser::FinishFileDownload( String& rStr )