Let wxWidgets clean up its own child windows.

Potentially KICAD-P6J.
This commit is contained in:
Jeff Young 2025-07-14 21:22:24 +01:00
parent de1376e369
commit 338c414933

View File

@ -657,14 +657,6 @@ void KICAD_MANAGER_FRAME::doCloseWindow()
}
#endif
for( size_t i = 0; i < m_notebook->GetPageCount(); i++ )
{
wxWindow* page = m_notebook->GetPage( i );
if( dynamic_cast<PANEL_NOTEBOOK_BASE*>( page ) )
m_notebook->DeletePage( i );
}
m_leftWin->Show( false );
Pgm().m_Quitting = true;