+ void MyFrame::OnClose(wxCloseEvent& event)
+ {
+ // Close the help frame; this will cause the config data to
+ // get written.
+ if ( help.GetFrame() ) // returns NULL if no help frame active
+ help.GetFrame()->Close(TRUE);
+ // now we can safely delete the config pointer
+ event.Skip();
+ delete wxConfig::Set(NULL);
+ }
+