X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a324a7bccf4bda8f4f2bf09daee8104cae953cee..6f349458f6903083bd967f52624a5e639733ad5d:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index 318f0706b3..34391202ed 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -323,7 +323,7 @@ void wxLog::TimeStamp(wxString *str) wxChar buf[256]; time_t timeNow; (void)time(&timeNow); -// wxStrftime(buf, WXSIZEOF(buf), ms_timestamp, localtime(&timeNow)); + wxStrftime(buf, WXSIZEOF(buf), ms_timestamp, localtime(&timeNow)); str->Empty(); *str << buf << _T(": "); @@ -507,6 +507,9 @@ void wxLogGui::Flush() // no undisplayed messages whatsoever Clear(); + + // do it here again + m_bHasMessages = FALSE; } // the default behaviour is to discard all informational messages if there @@ -577,7 +580,6 @@ void wxLogGui::DoLog(wxLogLevel level, const wxChar *szString, time_t t) if ( !m_bErrors ) { m_aMessages.Empty(); m_aTimes.Empty(); - m_bHasMessages = TRUE; m_bErrors = TRUE; } // fall through @@ -590,6 +592,7 @@ void wxLogGui::DoLog(wxLogLevel level, const wxChar *szString, time_t t) m_aMessages.Add(szString); m_aTimes.Add((long)t); + m_bHasMessages = TRUE; break; } }