From c18bfe0c618373a53777c2dfc01eb6d7a97f805b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 12 Jan 2024 15:38:25 +0100 Subject: [PATCH] DIALOG_DRC & DIALOG_ERC: re-enable button "Run ERC" and "Run DRC" after running tests. Fixes #16583 https://gitlab.com/kicad/code/kicad/-/issues/16583 --- eeschema/dialogs/dialog_erc.cpp | 3 +++ pcbnew/dialogs/dialog_drc.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/eeschema/dialogs/dialog_erc.cpp b/eeschema/dialogs/dialog_erc.cpp index 33151c5e5c..47d02d0965 100644 --- a/eeschema/dialogs/dialog_erc.cpp +++ b/eeschema/dialogs/dialog_erc.cpp @@ -458,6 +458,9 @@ void DIALOG_ERC::OnRunERCClick( wxCommandEvent& event ) wxMilliSleep( 500 ); m_runningResultsBook->ChangeSelection( 1 ); KIPLATFORM::UI::ForceFocus( m_notebook ); + + // now re-enable m_sdbSizerOK button + m_sdbSizer1OK->Enable( true ); } m_ercRun = true; diff --git a/pcbnew/dialogs/dialog_drc.cpp b/pcbnew/dialogs/dialog_drc.cpp index f76e83f41c..27355155ed 100644 --- a/pcbnew/dialogs/dialog_drc.cpp +++ b/pcbnew/dialogs/dialog_drc.cpp @@ -344,6 +344,9 @@ void DIALOG_DRC::OnRunDRCClick( wxCommandEvent& aEvent ) wxMilliSleep( 500 ); m_runningResultsBook->ChangeSelection( 1 ); KIPLATFORM::UI::ForceFocus( m_Notebook ); + + // now re-enable m_sdbSizerOK button + m_sdbSizerOK->Enable( true ); } refreshEditor();