From 9717857b666e7d23eacef9663a7b9d9be0640376 Mon Sep 17 00:00:00 2001 From: windinthew Date: Wed, 17 Aug 2011 18:29:27 +0000 Subject: [PATCH] Bug 315: Putting AUDACITY_VERSION_STRING at top of log (needs testing on Mac). See discussion at http://bugzilla.audacityteam.org/show_bug.cgi?id=315#c18 --- src/AudacityApp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index ed2121a6e..8e64ad3e2 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -1117,6 +1117,10 @@ bool AudacityApp::OnInit() wxFrame *temporarywindow = new wxFrame(NULL, -1, wxT("temporarytopwindow")); SetTopWindow(temporarywindow); + wxLog::FlushActive(); // Make sure all log messages are written. + + wxLogMessage(wxString::Format(wxT("Audacity %s"), AUDACITY_VERSION_STRING)); + // Initialize the ModuleManager ModuleManager::Initialize(); @@ -1398,8 +1402,6 @@ bool AudacityApp::OnInit() mWindowRectAlreadySaved = FALSE; - wxLog::FlushActive(); // Make sure all log messages are written. - mTimer = new wxTimer(this, kAudacityAppTimerID); mTimer->Start(200); return TRUE;