summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2019-12-18 16:09:36 -0400
committerHenry Castro <hcastro@collabora.com>2019-12-18 22:25:26 +0100
commit95fef4c4041135ad17a575680af7c1dea074ba19 (patch)
treeb60e9df75ce1da5bf92a8bb27a6cb73f8bbfd8ff
parent25d8db8598ac54fe3ef1d6f40076ff19db87cd2f (diff)
lok: ensure assign one parent LOK notifier
The frame window is unique that are parents of different view shells (windows) Change-Id: I0f5e76c0c0d9844c2bd642354ac93d368dc2af38 Reviewed-on: https://gerrit.libreoffice.org/85426 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Henry Castro <hcastro@collabora.com>
-rw-r--r--sfx2/source/view/viewsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index bc32de20a9e6..0a6fc164081d 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -1082,7 +1082,7 @@ SfxViewShell::SfxViewShell
if (comphelper::LibreOfficeKit::isActive())
{
vcl::Window* pFrameWin = pViewFrame->GetWindow().GetFrameWindow();
- if (pFrameWin)
+ if (pFrameWin && !pFrameWin->GetLOKNotifier())
pFrameWin->SetLOKNotifier(this, true);
}
}