Fix close button on simulator frame.

Fixes https://gitlab.com/kicad/code/kicad/issues/14551
This commit is contained in:
Jeff Young 2023-04-16 23:44:43 +01:00
parent b4938f5198
commit 02c5a31b99
2 changed files with 8 additions and 0 deletions

View File

@ -457,6 +457,12 @@ private:
};
BEGIN_EVENT_TABLE( SIMULATOR_FRAME, SIMULATOR_FRAME_BASE )
EVT_MENU( wxID_EXIT, SIMULATOR_FRAME::onExit )
EVT_MENU( wxID_CLOSE, SIMULATOR_FRAME::onExit )
END_EVENT_TABLE()
SIMULATOR_FRAME::SIMULATOR_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
SIMULATOR_FRAME_BASE( aParent ),
m_SuppressGridEvents( 0 ),

View File

@ -245,6 +245,8 @@ public:
void OnModify() override;
DECLARE_EVENT_TABLE()
private:
void setupTools();
void doReCreateMenuBar() override;