Browse Source

Set correct default when re-showing ERC dialog.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19120
pcb_db
Jeff Young 12 months ago
parent
commit
76fc7d0c24
  1. 6
      eeschema/tools/ee_inspection_tool.cpp

6
eeschema/tools/ee_inspection_tool.cpp

@ -112,7 +112,11 @@ void EE_INSPECTION_TOOL::ShowERCDialog()
// Bring it to the top if already open. Dual monitor users need this.
dlg->Raise();
KIPLATFORM::UI::ForceFocus( dlg->FindWindow( wxID_OK ) );
if( wxButton* okButton = dynamic_cast<wxButton*>( dlg->FindWindow( wxID_OK ) ) )
{
KIPLATFORM::UI::ForceFocus( okButton );
okButton->SetDefault();
}
}

Loading…
Cancel
Save