From 522752c77d101e7c8dd7c661e1e5fc601280e9e1 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sat, 13 Dec 2008 16:58:06 +0000 Subject: small speedup of logmanager, minor logging improvements, misc code standard improvements, replace a crash with an error message in ppcanalyst git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1521 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DebuggerWX/Src/CodeWindow.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Source/Core/DebuggerWX/Src/CodeWindow.cpp') diff --git a/Source/Core/DebuggerWX/Src/CodeWindow.cpp b/Source/Core/DebuggerWX/Src/CodeWindow.cpp index f37ff57332..b5caf52533 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindow.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindow.cpp @@ -284,11 +284,13 @@ void CCodeWindow::CreateGUIControls(const SCoreStartupParameter& _LocalCoreStart // additional dialogs - if (IsLoggingActivated() && bLogWindow) +#ifdef LOGGING + if (bLogWindow) { m_LogWindow = new CLogWindow(this); m_LogWindow->Show(true); } +#endif if (bRegisterWindow) { @@ -380,7 +382,7 @@ void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParam { wxMenu* pDebugDialogs = new wxMenu; - if (IsLoggingActivated()) + if (LogManager::Enabled()) { wxMenuItem* pLogWindow = pDebugDialogs->Append(IDM_LOGWINDOW, _T("&LogManager"), wxEmptyString, wxITEM_CHECK); pLogWindow->Check(bLogWindow); @@ -905,12 +907,11 @@ void CCodeWindow::OnSymbolListContextMenu(wxContextMenuEvent& event) ///////////////////////////////////////////////////////////////////////////////////////////////// // Show and hide windows -// ----------------------- ///////////////////////////////////////////////////////////////////////////////////////////////// void CCodeWindow::OnToggleLogWindow(wxCommandEvent& event) { - if (IsLoggingActivated()) + if (LogManager::Enabled()) { bool show = GetMenuBar()->IsChecked(event.GetId()); -- cgit v1.2.3