From be8bbcaac327ec20fc8d2a7ca3dbac47740c140d Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 7 Nov 2022 19:46:35 +0000 Subject: [PATCH] Send Selected event even if the result is an empty selection. Fixes https://gitlab.com/kicad/code/kicad/issues/12849 --- pcbnew/tools/pcb_selection_tool.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pcbnew/tools/pcb_selection_tool.cpp b/pcbnew/tools/pcb_selection_tool.cpp index d9b1e1e660..20bd2b454e 100644 --- a/pcbnew/tools/pcb_selection_tool.cpp +++ b/pcbnew/tools/pcb_selection_tool.cpp @@ -1183,8 +1183,7 @@ int PCB_SELECTION_TOOL::expandConnection( const TOOL_EVENT& aEvent ) m_frame->SetStatusText( wxEmptyString ); // Inform other potentially interested tools - if( m_selection.Size() > 0 ) - m_toolMgr->ProcessEvent( EVENTS::SelectedEvent ); + m_toolMgr->ProcessEvent( EVENTS::SelectedEvent ); return 0; }