]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/msgout.cpp
don't give empty message box if Parse(FALSE) was called and there was --help on the...
[wxWidgets.git] / src / common / msgout.cpp
index 9bdcdae51996418cb72ea777a506c33e5ed7a664..0d03ccc7c12451b25c4c39dabf118b2b3cff87d8 100755 (executable)
@@ -39,7 +39,7 @@
 
 #include "wx/msgout.h"
 #include "wx/log.h"
-                                                                            
+
 #include <stdarg.h>
 #include <stdio.h>
 
@@ -97,10 +97,16 @@ void wxMessageOutputMessageBox::Printf(const wxChar* format, ...)
     out.PrintfV(format, args);
     va_end(args);
 
+    // the native MSW msg box understands the TABs, others don't
 #ifndef __WXMSW__
-    out.Replace(wxT("\t"),wxT("        "));
+    out.Replace(wxT("\t"), wxT("        "));
 #endif
-    ::wxMessageBox(out);
+
+    wxString title;
+    if ( wxTheApp )
+        title.Printf(_("%s message"), wxTheApp->GetAppName().c_str());
+
+    ::wxMessageBox(out, title);
 }
 
 #endif // wxUSE_GUI
@@ -119,7 +125,7 @@ void wxMessageOutputLog::Printf(const wxChar* format, ...)
     out.PrintfV(format, args);
     va_end(args);
 
-    out.Replace(wxT("\t"),wxT("        "));
+    out.Replace(wxT("\t"), wxT("        "));
 
     ::wxLogMessage(wxT("%s"), out.c_str());
 }