Unset PCM button to avoid crash on close.

This commit is contained in:
Alex Shvartzkop 2025-05-29 10:38:44 +03:00
parent a92ac0ea99
commit 6a003b94d6

View File

@ -43,6 +43,8 @@ PANEL_KICAD_LAUNCHER::PANEL_KICAD_LAUNCHER( wxWindow* aParent ) :
PANEL_KICAD_LAUNCHER::~PANEL_KICAD_LAUNCHER()
{
m_frame->SetPcmButton( nullptr );
for( wxWindow* window : m_scrolledWindow->GetChildren() )
{
if( dynamic_cast<BITMAP_BUTTON*>( window ) != nullptr )