summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-04-07 13:57:31 +0100
committerMichael Meeks <michael.meeks@novell.com>2011-04-07 13:57:31 +0100
commit412a02c4aab313619013a18983bd77841ba0d50f (patch)
tree43775ae98eafbcabbb64a7148cfba5f37f7f9aed /sfx2
parent6cae9f54599fe9f1859c910beec7275e1c6145c1 (diff)
hide macro menu item when disabled to reduce confusion
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index e24d6a8e542d..6895190d0c32 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -3110,8 +3110,9 @@ void SfxViewFrame::MiscState_Impl(SfxItemSet &rSet)
if ( !aMiscOptions.IsExperimentalMode() ||
( strcmp(pName,"swriter") && strcmp(pName,"scalc") ) )
{
- rSet.DisableItem( nWhich );
- break;
+ rSet.DisableItem( nWhich );
+ rSet.Put(SfxVisibilityItem(nWhich, sal_False));
+ break;
}
::rtl::OUString sProperty(RTL_CONSTASCII_USTRINGPARAM("DispatchRecorderSupplier"));