int wxApp::MainLoop()
{
+ int rt;
gs_mainEventLoop = new wxEventLoop;
- return gs_mainEventLoop->Run();
+ rt = gs_mainEventLoop->Run();
delete gs_mainEventLoop;
gs_mainEventLoop = NULL;
+ return rt;
}
void wxApp::ExitMainLoop()
bool wxApp::Initialized()
{
- return (GetTopWindow() != NULL);
+ // FIXME_MGL -- only for now because we don't have wxFrame/wxDialog yet
+ return TRUE;
+ //return (wxTopLevelWindows.GetCount() != 0);
}
bool wxApp::Pending()
call OnRun() */
wxTheApp->DeletePendingObjects();
- if ( wxTheApp->Initialized() &&
- wxTopLevelWindows.GetCount() != 0 )
+ if ( wxTheApp->Initialized() )
{
wxTheApp->OnRun();