Handle quit uniformly in COMMON_CONTROL.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22659

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22660
This commit is contained in:
Jeff Young
2026-01-06 17:07:38 +00:00
parent 46f9b822f1
commit 1f2caa041d
12 changed files with 19 additions and 153 deletions
-8
View File
@@ -48,15 +48,7 @@ int BITMAP2CMP_CONTROL::Open( const TOOL_EVENT& aEvent )
}
int BITMAP2CMP_CONTROL::Close( const TOOL_EVENT& aEvent )
{
m_frame->Close();
return 0;
}
void BITMAP2CMP_CONTROL::setTransitions()
{
Go( &BITMAP2CMP_CONTROL::Open, ACTIONS::open.MakeEvent() );
Go( &BITMAP2CMP_CONTROL::Close, ACTIONS::quit.MakeEvent() );
}