From 6a62f1df945e07478c4341e51dd477e6ae036947 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 4 Oct 2024 10:45:49 +0200 Subject: [PATCH] symbol editor, context menu for pins: remove "Select on Pcb" action. It has no meaning in Symbol editor. Fixes https://gitlab.com/kicad/code/kicad/-/issues/18841 --- eeschema/tools/ee_selection_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/tools/ee_selection_tool.cpp b/eeschema/tools/ee_selection_tool.cpp index 3892334846..e394451f73 100644 --- a/eeschema/tools/ee_selection_tool.cpp +++ b/eeschema/tools/ee_selection_tool.cpp @@ -313,7 +313,7 @@ bool EE_SELECTION_TOOL::Init() menu.AddItem( EE_ACTIONS::enterSheet, sheetSelection && EE_CONDITIONS::Idle, 150 ); menu.AddItem( EE_ACTIONS::selectOnPCB, - crossProbingSelection && EE_CONDITIONS::Idle, 150 ); + crossProbingSelection && schEditCondition && EE_CONDITIONS::Idle, 150 ); menu.AddItem( EE_ACTIONS::leaveSheet, belowRootSheetCondition, 150 ); menu.AddSeparator( 200 );