X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edc1cd8baf42910840cd2f86351f417868f9c1a9..01cb1c26171efc494b94d77e4351362bb0eb2e7d:/src/motif/app.cpp diff --git a/src/motif/app.cpp b/src/motif/app.cpp index f6fc696ffc..34fdebf680 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -264,14 +264,8 @@ wxAppInitializerFunction wxAppBase::m_appInitFn = (wxAppInitializerFunction) NUL wxApp::wxApp() { - m_topWindow = NULL; - wxTheApp = this; - m_className = ""; - m_wantDebugOutput = TRUE ; - m_appName = ""; argc = 0; argv = NULL; - m_exitOnFrameDelete = TRUE; m_mainColormap = (WXColormap) NULL; m_appContext = (WXAppContext) NULL; @@ -586,6 +580,8 @@ bool wxApp::OnInitGui() argv); if (!dpy) { + // if you don't log to stderr, nothing will be shown... + delete wxLog::SetActiveTarget(new wxLogStderr); wxString className(wxTheApp->GetClassName()); wxLogError(_("wxWindows could not open display for '%s': exiting."), (const char*) className);