Kaydet (Commit) 05f0eb57 authored tarafından Michael Meeks's avatar Michael Meeks

disable sidebar menu option if it is disabled.

üst 3fd311a9
......@@ -3220,7 +3220,7 @@ void SfxViewFrame::ChildWindowState( SfxItemSet& rState )
}
else if ( nSID == SID_TASKPANE )
{
if ( !KnowsChildWindow( nSID ) )
if ( !KnowsChildWindow( nSID ) )
{
OSL_FAIL( "SID_TASKPANE state requested, but no task pane child window exists for this ID!" );
rState.DisableItem( nSID );
......@@ -3236,6 +3236,11 @@ void SfxViewFrame::ChildWindowState( SfxItemSet& rState )
}
else if ( nSID == SID_SIDEBAR )
{
if ( !IsSidebarEnabled() )
{
rState.DisableItem( nSID );
rState.Put( SfxVisibilityItem( nSID, sal_False ) );
}
if ( !KnowsChildWindow( nSID ) )
{
OSL_ENSURE( false, "SID_TASKPANE state requested, but no task pane child window exists for this ID!" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment