Fix: Unable to select other items after syncing hierarchical sheet pins

Fixes https://gitlab.com/kicad/code/kicad/-/issues/17800
This commit is contained in:
Ethan Chien 2024-04-25 18:45:32 +08:00
parent cd64630661
commit d058e12cb5
2 changed files with 3 additions and 1 deletions

View File

@ -179,7 +179,7 @@ void SCH_EDIT_FRAME::ReCreateVToolbar()
m_drawToolBar->Add( EE_ACTIONS::placeHierLabel, ACTION_TOOLBAR::TOGGLE );
m_drawToolBar->Add( EE_ACTIONS::drawSheet, ACTION_TOOLBAR::TOGGLE );
m_drawToolBar->Add( EE_ACTIONS::placeSheetPin, ACTION_TOOLBAR::TOGGLE );
m_drawToolBar->Add( EE_ACTIONS::syncAllSheetsPins, ACTION_TOOLBAR::TOGGLE );
m_drawToolBar->Add( EE_ACTIONS::syncAllSheetsPins );
m_drawToolBar->AddScaledSeparator( this );
m_drawToolBar->Add( EE_ACTIONS::placeSchematicText, ACTION_TOOLBAR::TOGGLE );

View File

@ -1680,6 +1680,8 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
if( m_dialogSyncSheetPin && m_dialogSyncSheetPin->GetPlacementTemplate() )
{
m_frame->PopTool( aEvent );
m_toolMgr->RunAction( EE_ACTIONS::clearSelection );
m_dialogSyncSheetPin->EndPlaceItem( item );
m_dialogSyncSheetPin->Show( true );
break;