sfx2/source/view/viewsh.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 95fef4c4041135ad17a575680af7c1dea074ba19
Author:     Henry Castro <[email protected]>
AuthorDate: Wed Dec 18 16:09:36 2019 -0400
Commit:     Henry Castro <[email protected]>
CommitDate: Wed Dec 18 22:25:26 2019 +0100

    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 <[email protected]>
    Reviewed-by: Henry Castro <[email protected]>

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);
     }
 }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to