}
else
{ // Read in Foreign language's text for GetAppName() and Help
- m_locale.AddCatalog(GetAppName().c_str());
+ Temp0 = GetAppName();
+ Temp0 = Temp0.Lower();
+ m_locale.AddCatalog(Temp0.c_str());
m_locale.AddCatalog("help");
}
} // Support the following languages (std = english)
//----------------------------------------------------------------------------------------
MainFrame::~MainFrame(void)
{
+ // Close the help frame; this will cause the config data to get written.
+ if (p_Help->GetFrame()) // returns NULL if no help frame active
+ p_Help->GetFrame()->Close(TRUE);
+ delete p_Help; // Memory Leak
+ p_Help = NULL;
// save the control's values to the config
if (p_ProgramCfg == NULL)
return;
//----------------------------------------------------------------------------------------
void MainFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
- // Close the help frame; this will cause the config data to get written.
- if (p_Help->GetFrame()) // returns NULL if no help frame active
- p_Help->GetFrame()->Close(TRUE);
Close(TRUE);
}
//----------------------------------------------------------------------------------------