summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorPranam Lashkari <lpranam@collabora.com>2021-03-23 15:41:49 +0530
committerSzymon Kłos <szymon.klos@collabora.com>2021-03-23 13:34:31 +0100
commit6af0a488a059982a8b5d72fe399c7e8841a2e9b4 (patch)
tree241fdbff19199e999cee0ba0f0e2b8d6c3a100e2 /sfx2
parent9a53a3bcb9a282090ae2a52442e31e5b1225a1ce (diff)
Notebookbar: skip early init in all apps
for more details 42cc32c95db2484961a65c906af1a899c1a6aa2b Change-Id: I64f1ce22f7e1cbdbab3aea17841030a6313c1c0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112978 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/notebookbar/SfxNotebookBar.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx
index e854a5e047d7..36346b22c21b 100644
--- a/sfx2/source/notebookbar/SfxNotebookBar.cxx
+++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx
@@ -377,8 +377,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;