From 842d680b5e6cad5ecca5ee8baad7f253cbaa1cab Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 2 Mar 2020 12:43:28 -0800 Subject: [PATCH] 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 --- pcbnew/footprint_edit_frame.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pcbnew/footprint_edit_frame.cpp b/pcbnew/footprint_edit_frame.cpp index 1b98f99b8d..19c9b30e8d 100644 --- a/pcbnew/footprint_edit_frame.cpp +++ b/pcbnew/footprint_edit_frame.cpp @@ -847,13 +847,14 @@ void FOOTPRINT_EDIT_FRAME::setupTools() m_toolManager->RegisterTool( new PCBNEW_PICKER_TOOL ); m_toolManager->RegisterTool( new POSITION_RELATIVE_TOOL ); - m_toolManager->GetTool()->SetEditModules( true ); - m_toolManager->GetTool()->SetEditModules( true ); - m_toolManager->GetTool()->SetEditModules( true ); m_toolManager->GetTool()->SetEditModules( true ); m_toolManager->GetTool()->SetEditModules( true ); + m_toolManager->GetTool()->SetEditModules( true ); m_toolManager->GetTool()->SetEditModules( true ); m_toolManager->GetTool()->SetEditModules( true ); + m_toolManager->GetTool()->SetEditModules( true ); + m_toolManager->GetTool()->SetEditModules( true ); + m_toolManager->GetTool()->SetEditModules( true ); m_toolManager->InitTools();