Kaydet (Commit) a65459ea authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski Kaydeden (comit) Michael Stahl

MM: Don't adapt the view when saving dbg documents

DoSaveCompleted updates the SwViewShell and recent file lists after
the document was saved via DoSaveAs. So we can simply drop the
call and delete the SfxMedium to save a copy.

Change-Id: I04a0710949ca60e1ff4cab24c6b504deb130db63
Reviewed-on: https://gerrit.libreoffice.org/10983Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 80d6fd81
...@@ -828,11 +828,11 @@ static void lcl_SaveDoc( SfxObjectShell *xTargetDocShell, ...@@ -828,11 +828,11 @@ static void lcl_SaveDoc( SfxObjectShell *xTargetDocShell,
aTempFileURL.GetMainURL( INetURLObject::NO_DECODE ), aTempFileURL.GetMainURL( INetURLObject::NO_DECODE ),
STREAM_STD_READWRITE ); STREAM_STD_READWRITE );
xTargetDocShell->DoSaveAs( *pDstMed ); xTargetDocShell->DoSaveAs( *pDstMed );
xTargetDocShell->DoSaveCompleted( pDstMed );
if( xTargetDocShell->GetError() ) if( xTargetDocShell->GetError() )
SAL_WARN( "sw.mailmerge", "Error saving: " << aTempFile->GetURL() ); SAL_WARN( "sw.mailmerge", "Error saving: " << aTempFile->GetURL() );
else else
SAL_INFO( "sw.mailmerge", "Saved doc as: " << aTempFile->GetURL() ); SAL_INFO( "sw.mailmerge", "Saved doc as: " << aTempFile->GetURL() );
delete pDstMed;
} }
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment