From c0e6c6edb158c983809da3f238d6559f59c40ddd Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 7 Apr 2011 13:57:31 +0100 Subject: hide macro menu item when disabled to reduce confusion --- sfx2/source/view/viewfrm.cxx | 5 +++-- 1 file 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")); -- cgit v1.2.3