diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2014-07-29 14:26:40 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2014-09-30 09:48:57 +0200 |
commit | a5169a1e7ed69c2ce8798ad2866ef78970397d2f (patch) | |
tree | f57b534781c9a58abd665cf93642c28da2ab661d | |
parent | 5fc1238af0239a35f3b0c6f5ff4ecb1c1cd6ae3b (diff) |
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/10983
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit a65459eae58f342787abe4c766912f964a8383be)
Conflicts:
sw/source/uibase/dbui/dbmgr.cxx
-rw-r--r-- | sw/source/ui/dbui/dbmgr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/dbui/dbmgr.cxx b/sw/source/ui/dbui/dbmgr.cxx index a87a1d6af278..ca79647920f9 100644 --- a/sw/source/ui/dbui/dbmgr.cxx +++ b/sw/source/ui/dbui/dbmgr.cxx @@ -839,11 +839,11 @@ static void lcl_SaveDoc( SfxObjectShell *xTargetDocShell, aTempFileURL.GetMainURL( INetURLObject::NO_DECODE ), STREAM_STD_READWRITE ); xTargetDocShell->DoSaveAs( *pDstMed ); - xTargetDocShell->DoSaveCompleted( pDstMed ); if( xTargetDocShell->GetError() ) SAL_WARN( "sw.mailmerge", "Error saving: " << aTempFile->GetURL() ); else SAL_INFO( "sw.mailmerge", "Saved doc as: " << aTempFile->GetURL() ); + delete pDstMed; } #endif |