diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-12-13 16:58:06 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-12-13 16:58:06 +0000 |
| commit | 522752c77d101e7c8dd7c661e1e5fc601280e9e1 (patch) | |
| tree | d8747759465d5f4e37d22510838c215bd2efa828 /Source/Core/DebuggerWX/Src/CodeWindow.cpp | |
| parent | 4355c373970ccc3f690699f0d40448972f81e8bc (diff) | |
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
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindow.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/CodeWindow.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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()); |
