sc/source/ui/docshell/docsh4.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 8ac35ace9fca1e0d348e5f9c1ee777458661338c Author: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> AuthorDate: Wed Apr 20 15:58:47 2022 +0200 Commit: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> CommitDate: Thu Apr 21 11:46:28 2022 +0200 Prevent save interception when un-sharing Calc doc Follow-up to bfc43aad0e8eb90e9d3495b940bc2283081f04c6 Change-Id: I0b4562e8a41377839e78c5e471f36eed0a52d5bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133216 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx index b0f16fd8cb15..edea61f6dbd1 100644 --- a/sc/source/ui/docshell/docsh4.cxx +++ b/sc/source/ui/docshell/docsh4.cxx @@ -1128,10 +1128,10 @@ void ScDocShell::Execute( SfxRequest& rReq ) EnableSharedSettings( false ); - if ( pBindings ) - { - pBindings->ExecuteSynchron( SID_SAVEDOC ); - } + // Do *not* use dispatch mechanism in this place - we don't want others (extensions etc.) to intercept this. + uno::Reference<frame::XStorable> xStorable2( + GetModel(), uno::UNO_QUERY_THROW); + xStorable2->store(); ScTabView* pTabView = pViewData->GetView(); if ( pTabView )