From: Vadim Zeitlin Date: Fri, 16 Apr 1999 14:05:33 +0000 (+0000) Subject: don't log empty status messages in wxLogWindow X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/372789845514bbe4171026f09744d36b4555a3de?ds=inline 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 --- diff --git a/src/common/log.cpp b/src/common/log.cpp index bafc4b8466..5b3a6f1ffc 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -332,8 +332,8 @@ void wxLog::DoLog(wxLogLevel level, const wxChar *szString, time_t t) break; case wxLOG_Info: - case wxLOG_Message: if ( GetVerbose() ) + case wxLOG_Message: DoLogString(str + szString, t); // fall through @@ -346,7 +346,6 @@ void wxLog::DoLog(wxLogLevel level, const wxChar *szString, time_t t) #ifdef __WXDEBUG__ DoLogString(szString, t); #endif - break; default: @@ -789,6 +788,7 @@ void wxLogWindow::DoLog(wxLogLevel level, const wxChar *szString, time_t t) case wxLOG_Status: // by default, these messages are ignored by wxLog, so process // them ourselves + if ( !wxIsEmpty(szString) ) { wxString str; str << _("Status: ") << szString;