Set Module Editor flag for tools
The commit takes the module edit flag when resetting the tool. All tools should reset this flag when we setup the Module editor. Fixes #3973 | https://gitlab.com/kicad/code/kicad/issues/3973
This commit is contained in:
parent
3c19704349
commit
842d680b5e
|
@ -847,13 +847,14 @@ void FOOTPRINT_EDIT_FRAME::setupTools()
|
||||||
m_toolManager->RegisterTool( new PCBNEW_PICKER_TOOL );
|
m_toolManager->RegisterTool( new PCBNEW_PICKER_TOOL );
|
||||||
m_toolManager->RegisterTool( new POSITION_RELATIVE_TOOL );
|
m_toolManager->RegisterTool( new POSITION_RELATIVE_TOOL );
|
||||||
|
|
||||||
m_toolManager->GetTool<PCBNEW_PICKER_TOOL>()->SetEditModules( true );
|
|
||||||
m_toolManager->GetTool<PCBNEW_CONTROL>()->SetEditModules( true );
|
|
||||||
m_toolManager->GetTool<PAD_TOOL>()->SetEditModules( true );
|
|
||||||
m_toolManager->GetTool<SELECTION_TOOL>()->SetEditModules( true );
|
m_toolManager->GetTool<SELECTION_TOOL>()->SetEditModules( true );
|
||||||
m_toolManager->GetTool<EDIT_TOOL>()->SetEditModules( true );
|
m_toolManager->GetTool<EDIT_TOOL>()->SetEditModules( true );
|
||||||
|
m_toolManager->GetTool<PAD_TOOL>()->SetEditModules( true );
|
||||||
m_toolManager->GetTool<DRAWING_TOOL>()->SetEditModules( true );
|
m_toolManager->GetTool<DRAWING_TOOL>()->SetEditModules( true );
|
||||||
m_toolManager->GetTool<POINT_EDITOR>()->SetEditModules( true );
|
m_toolManager->GetTool<POINT_EDITOR>()->SetEditModules( true );
|
||||||
|
m_toolManager->GetTool<PCBNEW_CONTROL>()->SetEditModules( true );
|
||||||
|
m_toolManager->GetTool<PCBNEW_PICKER_TOOL>()->SetEditModules( true );
|
||||||
|
m_toolManager->GetTool<POSITION_RELATIVE_TOOL>()->SetEditModules( true );
|
||||||
|
|
||||||
m_toolManager->InitTools();
|
m_toolManager->InitTools();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue