diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-11-11 08:49:53 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-12-16 10:19:25 +0100 |
commit | dea1b890cf5901bc62ec75c722f91ba40a4b37d8 (patch) | |
tree | 3615c9b0f5d576760fe2fc6ab663fbef820eb14a /framework/source/layoutmanager | |
parent | 45ef3a22444100e2c37aa2630b71bdb108721b12 (diff) |
Fix NotebookBar not showing up when directly opening a document
Change-Id: I6bb154102d5e58e7c7e1f1b0d68629555a6d1697
Diffstat (limited to 'framework/source/layoutmanager')
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index 32f207e5bcbc..1c15c9faa55b 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -784,11 +784,6 @@ void LayoutManager::implts_updateUIElementsVisibleState( bool bSetVisible ) if ( bSetVisible ) { pSysWindow->SetMenuBar(pMenuBar); - if (getenv("LO_USE_NOTEBOOKBAR")) - { - pSysWindow->CreateNotebookBar("vcl/ui/notebookbar.ui", m_xFrame); - pSysWindow->SetMenuBarMode(MenuBarMode::Hide); - } } else pSysWindow->SetMenuBar( nullptr ); @@ -1508,6 +1503,11 @@ throw (RuntimeException, std::exception) } } } + if (getenv("LO_USE_NOTEBOOKBAR")) + { + pSysWindow->CreateNotebookBar("vcl/ui/notebookbar.ui", m_xFrame); + pSysWindow->SetMenuBarMode(MenuBarMode::Hide); + } } } } |