]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/init.cpp
Made gnome printing stuff return wxPRINT_CANCELLED if
[wxWidgets.git] / src / common / init.cpp
index 8e4cba57e0021dbc48e84fa7651bc9c6cdbbd478..c0ce4e9bcb4f7cd51fa945b226e2dd645c1eaded 100644 (file)
@@ -376,6 +376,12 @@ 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) )
     {