summaryrefslogtreecommitdiff
path: root/sfx2
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-01 16:03:58 +0100
commitef1d69949c3e9108a7f3857bdf22e11820eff79a (patch)
tree42c53c78cf1223fc4262f9f8d43c80474a1738b6 /sfx2
parent279be72f26013dc75ad42bdeb2a3b9301a4326dc (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> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108557 Tested-by: Jenkins
Diffstat (limited to 'sfx2')
-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 49b2486cd8cd..9c78b4c693ce 100644
--- a/sfx2/source/control/unoctitm.cxx
+++ b/sfx2/source/control/unoctitm.cxx
@@ -1325,7 +1325,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;
}