summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-04-20 15:58:47 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-04-21 11:59:06 +0200
commit3bf7fce945b30514a74b4184c73c26225da3dd4d (patch)
tree77b7e41fa5d8bf68da88c765ed2a74392a2f9ea8
parente0a27e60ab8e37d89b350efc0c3c7abf65f483d0 (diff)
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.mehrbrodt@allotropia.de> (cherry picked from commit 8ac35ace9fca1e0d348e5f9c1ee777458661338c)
-rw-r--r--sc/source/ui/docshell/docsh4.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 52a44126539d..916cd1aa1b30 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -1108,10 +1108,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 = dynamic_cast< ScTabView* >( pViewData->GetView() );
if ( pTabView )