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:
parent
42319e57c6
commit
c805b52c39
|
@ -73,6 +73,7 @@ bool PAD_TOOL::Init()
|
|||
|
||||
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::explodePadToShapes, singlePadSel, 400 );
|
||||
}
|
||||
|
@ -80,7 +81,6 @@ bool PAD_TOOL::Init()
|
|||
menu.AddItem( PCB_ACTIONS::copyPadSettings, singlePadSel, 400 );
|
||||
menu.AddItem( PCB_ACTIONS::applyPadSettings, padSel, 400 );
|
||||
menu.AddItem( PCB_ACTIONS::pushPadSettings, singlePadSel, 400 );
|
||||
menu.AddItem( PCB_ACTIONS::enumeratePads, SELECTION_CONDITIONS::ShowAlways, 400 );
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue