log messages given during program initialization are not discarded any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -581,18 +581,23 @@ int wxEntry( int argc, char *argv[] )
|
|||||||
wxStripExtension( name );
|
wxStripExtension( name );
|
||||||
wxTheApp->SetAppName( name );
|
wxTheApp->SetAppName( name );
|
||||||
|
|
||||||
|
int retValue = 0;
|
||||||
|
|
||||||
if ( !wxTheApp->OnInitGui() )
|
if ( !wxTheApp->OnInitGui() )
|
||||||
return 0;
|
retValue = -1;
|
||||||
|
|
||||||
// Here frames insert themselves automatically into wxTopLevelWindows by
|
// Here frames insert themselves automatically into wxTopLevelWindows by
|
||||||
// getting created in OnInit().
|
// getting created in OnInit().
|
||||||
|
if ( retValue == 0 )
|
||||||
|
{
|
||||||
if ( !wxTheApp->OnInit() )
|
if ( !wxTheApp->OnInit() )
|
||||||
return 0;
|
retValue = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( retValue == 0 )
|
||||||
|
{
|
||||||
wxTheApp->m_initialized = wxTopLevelWindows.GetCount() != 0;
|
wxTheApp->m_initialized = wxTopLevelWindows.GetCount() != 0;
|
||||||
|
|
||||||
int retValue = 0;
|
|
||||||
|
|
||||||
if (wxTheApp->Initialized())
|
if (wxTheApp->Initialized())
|
||||||
retValue = wxTheApp->OnRun();
|
retValue = wxTheApp->OnRun();
|
||||||
|
|
||||||
@@ -614,6 +619,7 @@ int wxEntry( int argc, char *argv[] )
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxTheApp->OnExit();
|
wxTheApp->OnExit();
|
||||||
|
}
|
||||||
|
|
||||||
// flush the logged messages if any
|
// flush the logged messages if any
|
||||||
wxLog *log = wxLog::GetActiveTarget();
|
wxLog *log = wxLog::GetActiveTarget();
|
||||||
|
@@ -581,18 +581,23 @@ int wxEntry( int argc, char *argv[] )
|
|||||||
wxStripExtension( name );
|
wxStripExtension( name );
|
||||||
wxTheApp->SetAppName( name );
|
wxTheApp->SetAppName( name );
|
||||||
|
|
||||||
|
int retValue = 0;
|
||||||
|
|
||||||
if ( !wxTheApp->OnInitGui() )
|
if ( !wxTheApp->OnInitGui() )
|
||||||
return 0;
|
retValue = -1;
|
||||||
|
|
||||||
// Here frames insert themselves automatically into wxTopLevelWindows by
|
// Here frames insert themselves automatically into wxTopLevelWindows by
|
||||||
// getting created in OnInit().
|
// getting created in OnInit().
|
||||||
|
if ( retValue == 0 )
|
||||||
|
{
|
||||||
if ( !wxTheApp->OnInit() )
|
if ( !wxTheApp->OnInit() )
|
||||||
return 0;
|
retValue = -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( retValue == 0 )
|
||||||
|
{
|
||||||
wxTheApp->m_initialized = wxTopLevelWindows.GetCount() != 0;
|
wxTheApp->m_initialized = wxTopLevelWindows.GetCount() != 0;
|
||||||
|
|
||||||
int retValue = 0;
|
|
||||||
|
|
||||||
if (wxTheApp->Initialized())
|
if (wxTheApp->Initialized())
|
||||||
retValue = wxTheApp->OnRun();
|
retValue = wxTheApp->OnRun();
|
||||||
|
|
||||||
@@ -614,6 +619,7 @@ int wxEntry( int argc, char *argv[] )
|
|||||||
}
|
}
|
||||||
|
|
||||||
wxTheApp->OnExit();
|
wxTheApp->OnExit();
|
||||||
|
}
|
||||||
|
|
||||||
// flush the logged messages if any
|
// flush the logged messages if any
|
||||||
wxLog *log = wxLog::GetActiveTarget();
|
wxLog *log = wxLog::GetActiveTarget();
|
||||||
|
Reference in New Issue
Block a user