Fix for exiting on Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -78,7 +78,7 @@ bool MyApp::OnInit()
|
||||
SetAppName(wxT("wxHTMLHelp"));
|
||||
wxConfig::Get(); // create an instance
|
||||
|
||||
help = new wxHtmlHelpController;
|
||||
help = new wxHtmlHelpController(wxHF_DEFAULT_STYLE|wxHF_OPEN_FILES);
|
||||
|
||||
if (argc < 2) {
|
||||
wxLogError(wxT("Usage : helpview <helpfile> [<more helpfiles>]"));
|
||||
@@ -104,6 +104,9 @@ void MyApp::OnIdle(wxIdleEvent& event)
|
||||
{
|
||||
if (m_exitIfNoMainWindow && !GetTopWindow())
|
||||
ExitMainLoop();
|
||||
|
||||
event.Skip();
|
||||
event.RequestMore();
|
||||
}
|
||||
|
||||
int MyApp::OnExit()
|
||||
|
Reference in New Issue
Block a user