sfx2/source/control/dispatch.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 66d42cf637a8b3363684346c1864c958a6bc922d Author: Miklos Vajna <[email protected]> AuthorDate: Thu Nov 20 08:15:16 2025 +0100 Commit: Miklos Vajna <[email protected]> CommitDate: Thu Nov 20 15:20:12 2025 +0100 Related: cool#4535 sfx2 lok: warn when ignoring UNO command in read-only mode It took a bit of time to find why dispatching this command doesn't result in a call to SwView::Execute(), make the problem more obvious for the next person. Change-Id: I01dd63391b955f1c6f4cc9f2c060c83a8bff8fb2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194244 Reviewed-by: Miklos Vajna <[email protected]> Tested-by: Jenkins diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 30e5b7cb6fc4..b0dd805f047c 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -1721,7 +1721,12 @@ bool SfxDispatcher::FindServer_(sal_uInt16 nSlot, SfxSlotServer& rServer) { if (!IsCommandAllowedInLokReadOnlyViewMode(pSlot->GetCommand(), *xImp->pFrame->GetViewShell())) + { + SAL_WARN("sfx.control", "SfxDispatcher::FindServer_: rejecting command '" + << pSlot->GetCommand() + << "', not allowed in LOK read-only view mode"); return false; + } } }
