From c88b736cb90c88a7cd9e0d24c7cf53b3a47505d6 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Tue, 27 Aug 2002 20:31:49 +0000 Subject: [PATCH] When there is no display, the default log target will log nowhere. Switch to wxLogStderr before writing the failure message. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/motif/app.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 1671394ca0..34fdebf680 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -580,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); -- 2.47.2