don't log empty status messages in wxLogWindow

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-04-16 14:05:33 +00:00
parent bf88baa63e
commit 3727898455

View File

@@ -332,8 +332,8 @@ void wxLog::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
break; break;
case wxLOG_Info: case wxLOG_Info:
case wxLOG_Message:
if ( GetVerbose() ) if ( GetVerbose() )
case wxLOG_Message:
DoLogString(str + szString, t); DoLogString(str + szString, t);
// fall through // fall through
@@ -346,7 +346,6 @@ void wxLog::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
#ifdef __WXDEBUG__ #ifdef __WXDEBUG__
DoLogString(szString, t); DoLogString(szString, t);
#endif #endif
break; break;
default: default:
@@ -789,6 +788,7 @@ void wxLogWindow::DoLog(wxLogLevel level, const wxChar *szString, time_t t)
case wxLOG_Status: case wxLOG_Status:
// by default, these messages are ignored by wxLog, so process // by default, these messages are ignored by wxLog, so process
// them ourselves // them ourselves
if ( !wxIsEmpty(szString) )
{ {
wxString str; wxString str;
str << _("Status: ") << szString; str << _("Status: ") << szString;