Don't close ERC window when changing sheets.

This Reset() override was originally added to fix a bug when opening
a new schematic in stand-alone.  However, we now do that sort of
cleanup in SCH_EDIT_FRAME::doCloseWindow().

Fixes https://gitlab.com/kicad/code/kicad/issues/14470
This commit is contained in:
Jeff Young 2023-04-02 11:43:30 +01:00
parent b78e0a55b1
commit 3a8d6dffba
2 changed files with 0 additions and 15 deletions

View File

@ -71,19 +71,6 @@ bool EE_INSPECTION_TOOL::Init()
} }
void EE_INSPECTION_TOOL::Reset( RESET_REASON aReason )
{
EE_TOOL_BASE::Reset( aReason );
if( aReason == MODEL_RELOAD && m_frame )
{
wxCommandEvent* evt = new wxCommandEvent( EDA_EVT_CLOSE_ERC_DIALOG, wxID_ANY );
wxQueueEvent( m_frame, evt );
}
}
int EE_INSPECTION_TOOL::RunERC( const TOOL_EVENT& aEvent ) int EE_INSPECTION_TOOL::RunERC( const TOOL_EVENT& aEvent )
{ {
ShowERCDialog(); ShowERCDialog();

View File

@ -45,8 +45,6 @@ public:
/// @copydoc TOOL_INTERACTIVE::Init() /// @copydoc TOOL_INTERACTIVE::Init()
bool Init() override; bool Init() override;
void Reset( RESET_REASON aReason ) override;
int RunERC( const TOOL_EVENT& aEvent ); int RunERC( const TOOL_EVENT& aEvent );
void ShowERCDialog(); void ShowERCDialog();