Tool pad enumerate: show it only in footprint editor.

In board editor, its use makes no sense, and crash Pcbnew.
This commit is contained in:
jean-pierre charras 2020-05-16 15:52:47 +02:00
parent 42319e57c6
commit c805b52c39
1 changed files with 1 additions and 1 deletions

View File

@ -73,6 +73,7 @@ bool PAD_TOOL::Init()
if( m_editModules ) if( m_editModules )
{ {
menu.AddItem( PCB_ACTIONS::enumeratePads, SELECTION_CONDITIONS::ShowAlways, 400 );
menu.AddItem( PCB_ACTIONS::createPadFromShapes, SELECTION_CONDITIONS::NotEmpty, 400 ); menu.AddItem( PCB_ACTIONS::createPadFromShapes, SELECTION_CONDITIONS::NotEmpty, 400 );
menu.AddItem( PCB_ACTIONS::explodePadToShapes, singlePadSel, 400 ); menu.AddItem( PCB_ACTIONS::explodePadToShapes, singlePadSel, 400 );
} }
@ -80,7 +81,6 @@ bool PAD_TOOL::Init()
menu.AddItem( PCB_ACTIONS::copyPadSettings, singlePadSel, 400 ); menu.AddItem( PCB_ACTIONS::copyPadSettings, singlePadSel, 400 );
menu.AddItem( PCB_ACTIONS::applyPadSettings, padSel, 400 ); menu.AddItem( PCB_ACTIONS::applyPadSettings, padSel, 400 );
menu.AddItem( PCB_ACTIONS::pushPadSettings, singlePadSel, 400 ); menu.AddItem( PCB_ACTIONS::pushPadSettings, singlePadSel, 400 );
menu.AddItem( PCB_ACTIONS::enumeratePads, SELECTION_CONDITIONS::ShowAlways, 400 );
} }
return true; return true;