Fix bone-headed mistake when moving panel disabling.
This commit is contained in:
parent
ad85f8078a
commit
57c7d663b0
|
@ -105,7 +105,8 @@ void DIALOG_SCHEMATIC_SETUP::OnPageChange( wxBookCtrlEvent& event )
|
|||
{
|
||||
int page = event.GetSelection();
|
||||
|
||||
KIUI::Disable( m_treebook->GetPage( page ) );
|
||||
if( Prj().IsReadOnly() )
|
||||
KIUI::Disable( m_treebook->GetPage( page ) );
|
||||
|
||||
// Enable the reset button only if the page is resettable
|
||||
if( m_resetButton )
|
||||
|
|
|
@ -142,7 +142,7 @@ void DIALOG_BOARD_SETUP::OnPageChange( wxBookCtrlEvent& event )
|
|||
m_physicalStackup->OnLayersOptionsChanged( m_layers->GetUILayerMask() );
|
||||
else if( page == m_layerSetupPage )
|
||||
m_layers->SyncCopperLayers( m_physicalStackup->GetCopperLayerCount() );
|
||||
else
|
||||
else if( Prj().IsReadOnly() )
|
||||
KIUI::Disable( m_treebook->GetPage( page ) );
|
||||
|
||||
#ifdef __WXMAC__
|
||||
|
|
Loading…
Reference in New Issue