]> git.saurik.com Git - wxWidgets.git/commitdiff
don't log empty status messages in wxLogWindow
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Apr 1999 14:05:33 +0000 (14:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Apr 1999 14:05:33 +0000 (14:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/log.cpp

index bafc4b84666d29593418138177214b45f2e9540e..5b3a6f1ffc6f971ff06468e22c5975cf1d15a32c 100644 (file)
@@ -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;