From 100bb7c6caac087fd47d35a36155524cd8d76e4b Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 2 Mar 2020 12:42:04 -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. This is slightly different in master and v5, so this is a rework of 7bdf71abc Fixes #3973 | https://gitlab.com/kicad/code/kicad/issues/3973 --- pcbnew/footprint_edit_frame.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pcbnew/footprint_edit_frame.cpp b/pcbnew/footprint_edit_frame.cpp index 1bdf915af0..a6733ac180 100644 --- a/pcbnew/footprint_edit_frame.cpp +++ b/pcbnew/footprint_edit_frame.cpp @@ -1020,10 +1020,13 @@ void FOOTPRINT_EDIT_FRAME::setupTools() m_toolManager->RegisterTool( new 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->InitTools();