[Libreoffice-commits] core.git: sfx2/source

Henry Castro (via logerrit) logerrit at kemper.freedesktop.org
Tue Sep 22 12:53:10 UTC 2020


 sfx2/source/sidebar/ContextChangeBroadcaster.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e146d6f6abf8b70080ec6ea28c298e71d06a9e1d
Author:     Henry Castro <hcastro at collabora.com>
AuthorDate: Wed Sep 16 16:51:23 2020 -0400
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Sep 22 14:52:24 2020 +0200

    lok:sidebar: deactivate the shell with no default context
    
    When a different view deactivates to current shell,
    then it is set to default context that cause a side
    effect into another view with different panels
    in the sidebar.
    
    Change-Id: Ie99cde89bdfdb08e1ac93aed947cf13048800c0a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102887
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Henry Castro <hcastro at collabora.com>
    (cherry picked from commit e7c3678e309b59479be24be2b7c57f8b20dce4dd)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102943
    Tested-by: Jenkins
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/sfx2/source/sidebar/ContextChangeBroadcaster.cxx b/sfx2/source/sidebar/ContextChangeBroadcaster.cxx
index 8e213e68b71b..98763949f7b1 100644
--- a/sfx2/source/sidebar/ContextChangeBroadcaster.cxx
+++ b/sfx2/source/sidebar/ContextChangeBroadcaster.cxx
@@ -60,7 +60,8 @@ void ContextChangeBroadcaster::Deactivate (const css::uno::Reference<css::frame:
         BroadcastContextChange(
             rxFrame,
             GetModuleName(rxFrame),
-            vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Default));
+            (comphelper::LibreOfficeKit::isActive() ? msContextName:
+             vcl::EnumContext::GetContextName(vcl::EnumContext::Context::Default)));
     }
 }
 


More information about the Libreoffice-commits mailing list