From 44ab6876d94136c00771d1c23e510d70de7afe3e Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 21 Dec 2022 13:11:51 +0100 Subject: [PATCH] fp editor: remove useless "Unroute Selected" from context menu. Fixes #13229 https://gitlab.com/kicad/code/kicad/issues/13229 --- pcbnew/tools/edit_tool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/tools/edit_tool.cpp b/pcbnew/tools/edit_tool.cpp index 658843d1c1..2aef96fccf 100644 --- a/pcbnew/tools/edit_tool.cpp +++ b/pcbnew/tools/edit_tool.cpp @@ -201,7 +201,8 @@ bool EDIT_TOOL::Init() && notMovingCondition ); menu.AddItem( PCB_ACTIONS::unrouteSelected, SELECTION_CONDITIONS::NotEmpty && SELECTION_CONDITIONS::OnlyTypes( unroutableTypes ) - && notMovingCondition ); + && notMovingCondition + && !inFootprintEditor ); menu.AddItem( PCB_ACTIONS::moveIndividually, SELECTION_CONDITIONS::MoreThan( 1 ) && notMovingCondition ); menu.AddItem( PCB_ACTIONS::skip, isSkippable );