X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46ff9bd5ddc9c55598eeeecfd8945a54a60cca65..35bb3cb155917b4287fb2a3841bea22919a3d499:/src/generic/logg.cpp diff --git a/src/generic/logg.cpp b/src/generic/logg.cpp index abc1c6ae6f..235e067769 100644 --- a/src/generic/logg.cpp +++ b/src/generic/logg.cpp @@ -275,15 +275,9 @@ void wxLogGui::Flush() // do it right now to block any new calls to Flush() while we're here m_bHasMessages = false; - unsigned repeatCount = 0; - if ( wxLog::GetRepetitionCounting() ) - { - repeatCount = wxLog::DoLogNumberOfRepeats(); - } + const unsigned repeatCount = LogLastRepetitionCountIfNeeded(); - wxString appName = wxTheApp->GetAppName(); - if ( !appName.empty() ) - appName[0u] = (wxChar)wxToupper(appName[0u]); + wxString appName = wxTheApp->GetAppDisplayName(); long style; wxString titleFormat; @@ -319,7 +313,11 @@ void wxLogGui::Flush() #if wxUSE_LOG_DIALOG if ( repeatCount > 0 ) - m_aMessages[nMsgCount-1] += wxString::Format(wxT(" (%s)"), m_aMessages[nMsgCount-2].c_str()); + { + m_aMessages[nMsgCount - 1] + << " (" << m_aMessages[nMsgCount - 2] << ")"; + } + wxLogDialog dlg(NULL, m_aMessages, m_aSeverity, m_aTimes, title, style);