1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-05 14:49:25 +02:00

Fixed missing wxT(). Use logger even in debug builds.

This commit is contained in:
james.k.crook@gmail.com 2012-03-22 23:08:39 +00:00
parent 5f1ef8f8fa
commit c85dc5bb87
2 changed files with 6 additions and 9 deletions

View File

@ -1007,16 +1007,13 @@ bool AudacityApp::OnInit()
}
#endif
// JKC: On windows, we only want a logger in release builds.
mLogger=NULL;
#ifndef __WXMAC__
#ifndef _DEBUG
mLogger = new wxLogWindow(NULL, wxT("Audacity Log"), false, false);
mLogger->SetActiveTarget(mLogger);
mLogger->EnableLogging(true);
mLogger->SetLogLevel(wxLOG_Max);
wxLogMessage(wxString::Format(wxT("Audacity %s"), AUDACITY_VERSION_STRING));
#endif
mLogger = new wxLogWindow(NULL, wxT("Audacity Log"), false, false);
mLogger->SetActiveTarget(mLogger);
mLogger->EnableLogging(true);
mLogger->SetLogLevel(wxLOG_Max);
wxLogMessage(wxString::Format(wxT("Audacity %s"), AUDACITY_VERSION_STRING));
#endif
// Unused strings that we want to be translated, even though

View File

@ -4463,7 +4463,7 @@ void AudacityProject::MayStartMonitoring()
{
#ifdef EXPERIMENTAL_EXTRA_MONITORING
bool bAlwaysMonitor;
gPrefs->Read( "GUI/AlwaysMonitor", &bAlwaysMonitor, true );
gPrefs->Read( wxT("GUI/AlwaysMonitor"), &bAlwaysMonitor, true );
if( !bAlwaysMonitor )
return;