X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c7b2f01995f2c76e92408db8e80d049cc0ce467..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/common/init.cpp diff --git a/src/common/init.cpp b/src/common/init.cpp index f15805e91f..aaeec98204 100644 --- a/src/common/init.cpp +++ b/src/common/init.cpp @@ -29,6 +29,7 @@ #include "wx/filefn.h" #include "wx/log.h" #include "wx/thread.h" + #include "wx/intl.h" #endif #include "wx/init.h" @@ -399,17 +400,13 @@ void wxEntryCleanup() 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 if ( !wxEntryStart(argc, argv) ) { +#if wxUSE_LOG // flush any log messages explaining why we failed delete wxLog::SetActiveTarget(NULL); +#endif return -1; }