Create non-GUI log target until GUI logging is available, allows stderr messages in non-Unicode builds when GTK fails to initialize (Patch 1017789)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -376,6 +376,12 @@ void wxEntryCleanup()
|
|||||||
|
|
||||||
int wxEntryReal(int& argc, wxChar **argv)
|
int wxEntryReal(int& argc, wxChar **argv)
|
||||||
{
|
{
|
||||||
|
#if wxUSE_LOG
|
||||||
|
// Create a non-GUI log target, to be used until GUI (if any) is ready.
|
||||||
|
// Target will be reset by wxAppConsole::Initialize, when GUI logging will work.
|
||||||
|
wxLog::GetActiveTarget();
|
||||||
|
#endif
|
||||||
|
|
||||||
// library initialization
|
// library initialization
|
||||||
if ( !wxEntryStart(argc, argv) )
|
if ( !wxEntryStart(argc, argv) )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user