diff options
author | Henry Castro <hcastro@collabora.com> | 2019-12-18 16:09:36 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2019-12-23 11:59:01 +0100 |
commit | e60c4940e4b5274d88cf20f456848d8f92948450 (patch) | |
tree | f3202c5d7658af46e81f168b42aa576a16119ba8 /sfx2/source/view | |
parent | a503b7af8314bad4d8a1cc1288e809f642782170 (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/85434
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index 52ddcd97668b..592ac3207da9 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -1098,7 +1098,7 @@ SfxViewShell::SfxViewShell if (comphelper::LibreOfficeKit::isActive()) { vcl::Window* pFrameWin = pViewFrame->GetWindow().GetFrameWindow(); - if (pFrameWin) + if (pFrameWin && !pFrameWin->GetLOKNotifier()) pFrameWin->SetLOKNotifier(this, true); } } |