summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2020-12-30 12:07:10 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2021-01-20 23:02:35 +0100
commit761a0eb179938d6dab9a85e86c2a7c5b264599ca (patch)
tree2497f185dd6f90009d417301261323e2efb297d7
parent90511b3c20be54284eaad1d3c888cf2d1ca16569 (diff)
lok: send uno command state update to the right view.
We get the correct view as a parameter(pViewFrame). Change-Id: I36e99a7660fee69c6c7cb10977763b1136eb6e22 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108511 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> (cherry picked from commit 0b1fb051d1bcbfc9f08f288193cff8b039558afd) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109623
-rw-r--r--sfx2/source/control/unoctitm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx
index a4e7c3e27aca..d14a6ecd6982 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1293,7 +1293,7 @@ static void InterceptLOKStateChangeEvent(sal_uInt16 nSID, SfxViewFrame* pViewFra
else
{
// Try to send JSON state version
- SfxLokHelper::sendUnoStatus(SfxViewShell::Current(), pState);
+ SfxLokHelper::sendUnoStatus(pViewFrame->GetViewShell(), pState);
return;
}