summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-10-13 21:45:26 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-10-13 21:53:06 +0200
commitac20f98e498439b188a69e590336fc7cd6866b38 (patch)
tree9350c1c1a8d4c937493ce3377f1053aa4802347b /framework/source
parent1a848fb9b55eb1748ef902c8ec71a6576294aed5 (diff)
Don't add experimental commands to the Menu
Change-Id: I76b1c745d4c4d99f3a0a8d7573f1beae99503ef9
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/uielement/menubarmanager.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx
index feb5e71befcd..77e484d532ee 100644
--- a/framework/source/uielement/menubarmanager.cxx
+++ b/framework/source/uielement/menubarmanager.cxx
@@ -1653,6 +1653,12 @@ void MenuBarManager::FillMenu(
aProp[i].Value >>= bEnabled;
}
+ if (vcl::CommandInfoProvider::Instance().IsExperimental(aCommandURL, rModuleIdentifier) &&
+ !SvtMiscOptions().IsExperimentalMode())
+ {
+ continue;
+ }
+
if ( nType == css::ui::ItemType::DEFAULT )
{
pMenu->InsertItem( nId, aLabel );