diff --git a/pcbnew/dialogs/panel_setup_layers.cpp b/pcbnew/dialogs/panel_setup_layers.cpp index 96fdd59a5e..66d8034666 100644 --- a/pcbnew/dialogs/panel_setup_layers.cpp +++ b/pcbnew/dialogs/panel_setup_layers.cpp @@ -922,7 +922,7 @@ void PANEL_SETUP_LAYERS::onUpdateAddUserDefinedLayer( wxUpdateUIEvent& event ) { wxArrayString availableUserDefinedLayers = getAvailableUserDefinedLayers(); - event.Enable( m_PresetsChoice->GetSelection() == 0 && !availableUserDefinedLayers.IsEmpty() ); + event.Enable( !availableUserDefinedLayers.IsEmpty() ); }