summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2014-07-29 14:26:40 +0200
committerMichael Stahl <mstahl@redhat.com>2014-09-12 21:01:23 +0000
commita65459eae58f342787abe4c766912f964a8383be (patch)
tree8247f2d68028019cfcf8abd22a86afc72ec17ba7 /sw/source
parent80d6fd81dd8aff8f864049240eff71273bdd3e89 (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>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index b4edcabda142..9171bcd03055 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -828,11 +828,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