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

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Wed Mar 24 16:12:28 UTC 2021


 sfx2/source/notebookbar/SfxNotebookBar.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 24b1ceea96d101d4246cc1722b0a07a333b6713b
Author:     Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Tue Mar 23 15:41:49 2021 +0530
Commit:     Pranam Lashkari <lpranam at collabora.com>
CommitDate: Wed Mar 24 17:11:46 2021 +0100

    Notebookbar: skip early init in all apps
    
    for more details 42cc32c95db2484961a65c906af1a899c1a6aa2b
    
    Change-Id: I64f1ce22f7e1cbdbab3aea17841030a6313c1c0f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112953
    Tested-by: Jenkins
    Reviewed-by: Pranam Lashkari <lpranam at collabora.com>

diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx
index fa9b7f06bf13..b5606721a2ff 100644
--- a/sfx2/source/notebookbar/SfxNotebookBar.cxx
+++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx
@@ -348,8 +348,7 @@ bool SfxNotebookBar::StateMethod(SystemWindow* pSysWindow,
             //   * in LOK: Paste Special feature was incorrectly initialized
             // Skip first request so Notebookbar will be initialized after document was loaded
             static std::map<const void*, bool> bSkippedFirstInit;
-            if (comphelper::LibreOfficeKit::isActive() && eApp == vcl::EnumContext::Application::Writer
-                && bSkippedFirstInit.find(pViewShell) == bSkippedFirstInit.end())
+            if (comphelper::LibreOfficeKit::isActive() && bSkippedFirstInit.find(pViewShell) == bSkippedFirstInit.end())
             {
                 bSkippedFirstInit[pViewShell] = true;
                 return false;


More information about the Libreoffice-commits mailing list