Eeschema, DIALOG_ERC: fix minor issues:
- avoid printing twice the messages when running tests (Report() was called twice). - when saving the report open the project directory by default.
This commit is contained in:
parent
a70106a3bd
commit
13bcfc79a1
|
@ -142,10 +142,9 @@ bool DIALOG_ERC::updateUI()
|
||||||
|
|
||||||
void DIALOG_ERC::AdvancePhase( const wxString& aMessage )
|
void DIALOG_ERC::AdvancePhase( const wxString& aMessage )
|
||||||
{
|
{
|
||||||
|
// Will also call Report( aMessage ):
|
||||||
PROGRESS_REPORTER::AdvancePhase( aMessage );
|
PROGRESS_REPORTER::AdvancePhase( aMessage );
|
||||||
SetCurrentProgress( 0.0 );
|
SetCurrentProgress( 0.0 );
|
||||||
|
|
||||||
m_messages->Report( aMessage );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -732,9 +731,9 @@ void DIALOG_ERC::deleteAllMarkers( bool aIncludeExclusions )
|
||||||
|
|
||||||
void DIALOG_ERC::OnSaveReport( wxCommandEvent& aEvent )
|
void DIALOG_ERC::OnSaveReport( wxCommandEvent& aEvent )
|
||||||
{
|
{
|
||||||
wxFileName fn( "./ERC." + ReportFileExtension );
|
wxFileName fn( "erc." + ReportFileExtension );
|
||||||
|
|
||||||
wxFileDialog dlg( this, _( "Save Report to File" ), fn.GetPath(), fn.GetFullName(),
|
wxFileDialog dlg( this, _( "Save Report to File" ), Prj().GetProjectPath(), fn.GetFullName(),
|
||||||
ReportFileWildcard(), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
|
ReportFileWildcard(), wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
|
||||||
|
|
||||||
if( dlg.ShowModal() != wxID_OK )
|
if( dlg.ShowModal() != wxID_OK )
|
||||||
|
|
Loading…
Reference in New Issue