diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2021-03-23 15:41:49 +0530 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2021-04-09 11:22:28 +0100 |
commit | f84c63d9727f620d31a2a1cc65df3b60b3c2cad0 (patch) | |
tree | 493e162ef0c779eb06424e77ad180a1135e76f8e /sfx2 | |
parent | c35d5947240de72360d654e72ee52559c59da217 (diff) |
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@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/notebookbar/SfxNotebookBar.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx index cff228473371..f901b3788fc9 100644 --- a/sfx2/source/notebookbar/SfxNotebookBar.cxx +++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx @@ -360,8 +360,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; |