Disable Save Report while DRC is running.

Fixes https://gitlab.com/kicad/code/kicad/issues/5723
This commit is contained in:
Jeff Young 2020-09-20 12:21:03 +01:00
parent e27ff1dd3c
commit ad2407867a
1 changed files with 3 additions and 1 deletions

View File

@ -220,6 +220,7 @@ void DIALOG_DRC::OnRunDRCClick( wxCommandEvent& aEvent )
m_running = true; m_running = true;
m_sdbSizer1Cancel->SetLabel( _( "Cancel" ) ); m_sdbSizer1Cancel->SetLabel( _( "Cancel" ) );
m_saveReport->Enable( false );
drcTool->RunTests( this, testTracksAgainstZones, refillZones, reportAllTrackErrors, drcTool->RunTests( this, testTracksAgainstZones, refillZones, reportAllTrackErrors,
testFootprints ); testFootprints );
@ -232,8 +233,9 @@ void DIALOG_DRC::OnRunDRCClick( wxCommandEvent& aEvent )
Raise(); Raise();
wxYield(); // Allow time slice to refresh Messages wxYield(); // Allow time slice to refresh Messages
m_sdbSizer1Cancel->SetLabel( _( "Close" ) );
m_running = false; m_running = false;
m_sdbSizer1Cancel->SetLabel( _( "Close" ) );
m_saveReport->Enable( true );
if( !m_cancelled ) if( !m_cancelled )
{ {