X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2e1ef1928b7a2a292a6a5b9bd6fa2402a0c6b0f..b70ababc146a97e9f1b2afc0193f92fa6c202dd9:/src/common/log.cpp?ds=sidebyside diff --git a/src/common/log.cpp b/src/common/log.cpp index b71af7bd54..34391202ed 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -47,6 +47,7 @@ #include "wx/file.h" #include "wx/textfile.h" #include "wx/utils.h" +#include "wx/wxchar.h" #include "wx/log.h" // other standard headers @@ -506,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 @@ -576,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 @@ -589,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; } } @@ -896,7 +900,7 @@ wxLog *wxLog::ms_pLogger = (wxLog *)NULL; bool wxLog::ms_doLog = TRUE; bool wxLog::ms_bAutoCreate = TRUE; -const wxChar *wxLog::ms_timestamp = "%X"; // time only, no date +const wxChar *wxLog::ms_timestamp = _T("%X"); // time only, no date wxTraceMask wxLog::ms_ulTraceMask = (wxTraceMask)0; wxArrayString wxLog::ms_aTraceMasks;