diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-04-07 13:57:31 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-04-07 13:57:31 +0100 |
commit | c0e6c6edb158c983809da3f238d6559f59c40ddd (patch) | |
tree | e7160d5babe808fc91d59c423c6aa19189568ef2 | |
parent | 696dccc7134799629ed249f15757000deb533d26 (diff) |
hide macro menu item when disabled to reduce confusion
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 19c3d25721..08f9e0cd71 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")); |