From 054ff5a48f244c2fc4b2f60ec2b5778a9cecfb80 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Wed, 22 Oct 2008 09:03:03 +0000 Subject: [PATCH] Bugfix to log manager. The checkboxes should update when they are first appended now. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@933 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DebuggerWX/Src/LogWindow.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Source/Core/DebuggerWX/Src/LogWindow.cpp b/Source/Core/DebuggerWX/Src/LogWindow.cpp index 67b39e8ebc..0248bdd8a0 100644 --- a/Source/Core/DebuggerWX/Src/LogWindow.cpp +++ b/Source/Core/DebuggerWX/Src/LogWindow.cpp @@ -224,16 +224,13 @@ void CLogWindow::UpdateChecks() for (int i = 0; i < LogTypes::NUMBER_OF_LOGS; i++) { - for (int j = 0; j <= LogManager::VERBOSITY_LEVELS; j++) - { - bool Enabled = false; - ini.Get("LogManager", LogManager::m_Log[i + j*100]->m_szShortName, &Enabled, false); + bool Enabled = false; + ini.Get("LogManager", LogManager::m_Log[i + v*100]->m_szShortName, &Enabled, false); - m_checks->Check(i, Enabled); + m_checks->Check(i, Enabled); - LogManager::m_Log[i + j*100]->m_bEnable = Enabled; - LogManager::m_Log[i + j*100]->m_bShowInLog = Enabled; - } + LogManager::m_Log[i + v*100]->m_bEnable = Enabled; + LogManager::m_Log[i + v*100]->m_bShowInLog = Enabled; } m_bCheckDirty = true;