Browse Source

Added missing tool initialization

pull/3/merge
Maciej Suminski 9 years ago
parent
commit
f0e0254e27
  1. 2
      pcbnew/moduleframe.cpp
  2. 2
      pcbnew/modview_frame.cpp

2
pcbnew/moduleframe.cpp

@ -958,12 +958,12 @@ void FOOTPRINT_EDIT_FRAME::setupTools()
m_toolManager->RegisterTool( new MODULE_EDITOR_TOOLS );
m_toolManager->RegisterTool( new PLACEMENT_TOOL );
m_toolManager->RegisterTool( new PICKER_TOOL );
m_toolManager->InitTools();
m_toolManager->GetTool<SELECTION_TOOL>()->SetEditModules( true );
m_toolManager->GetTool<EDIT_TOOL>()->SetEditModules( true );
m_toolManager->GetTool<DRAWING_TOOL>()->SetEditModules( true );
m_toolManager->ResetTools( TOOL_BASE::RUN );
m_toolManager->InvokeTool( "pcbnew.InteractiveSelection" );
}

2
pcbnew/modview_frame.cpp

@ -199,7 +199,7 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
drawPanel->SetEventDispatcher( m_toolDispatcher );
m_toolManager->RegisterTool( new PCBNEW_CONTROL );
m_toolManager->ResetTools( TOOL_BASE::RUN );
m_toolManager->InitTools();
// If a footprint was previously loaded, reload it
if( getCurNickname().size() && getCurFootprintName().size() )

Loading…
Cancel
Save