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:
@@ -72,7 +72,7 @@ bool hvApp::OnInit()
|
||||
wxFileName::MacRegisterDefaultTypeAndCreator( wxT("htb") , 'HTBD' , 'HTBA' ) ;
|
||||
#endif
|
||||
|
||||
int istyle = wxHF_DEFAULT_STYLE;
|
||||
int istyle = wxHF_DEFAULT_STYLE|wxHF_OPEN_FILES;
|
||||
|
||||
wxString service, windowName, titleFormat, argStr;
|
||||
wxString book[10];
|
||||
@@ -238,6 +238,9 @@ void hvApp::OnIdle(wxIdleEvent& event)
|
||||
{
|
||||
if (m_exitIfNoMainWindow && !GetTopWindow())
|
||||
ExitMainLoop();
|
||||
|
||||
event.Skip();
|
||||
event.RequestMore();
|
||||
}
|
||||
|
||||
int hvApp::OnExit()
|
||||
|
Reference in New Issue
Block a user