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:
parent
b78e0a55b1
commit
3a8d6dffba
|
@ -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 )
|
||||
{
|
||||
ShowERCDialog();
|
||||
|
|
|
@ -45,8 +45,6 @@ public:
|
|||
/// @copydoc TOOL_INTERACTIVE::Init()
|
||||
bool Init() override;
|
||||
|
||||
void Reset( RESET_REASON aReason ) override;
|
||||
|
||||
int RunERC( const TOOL_EVENT& aEvent );
|
||||
void ShowERCDialog();
|
||||
|
||||
|
|
Loading…
Reference in New Issue