From 18f0bff1531f903473ad7d4f9fbf0dc33f5cbd73 Mon Sep 17 00:00:00 2001 From: John Peterson Date: Wed, 22 Oct 2008 09:58:00 +0000 Subject: [PATCH] Bigfix to bugfix in log manager. Enabled or disabled should update for all levels, the checkboxes should only be updated once. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@935 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DebuggerWX/Src/LogWindow.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Source/Core/DebuggerWX/Src/LogWindow.cpp b/Source/Core/DebuggerWX/Src/LogWindow.cpp index 0248bdd8a0..9812c21240 100644 --- a/Source/Core/DebuggerWX/Src/LogWindow.cpp +++ b/Source/Core/DebuggerWX/Src/LogWindow.cpp @@ -224,13 +224,14 @@ void CLogWindow::UpdateChecks() for (int i = 0; i < LogTypes::NUMBER_OF_LOGS; i++) { - bool Enabled = false; - ini.Get("LogManager", LogManager::m_Log[i + v*100]->m_szShortName, &Enabled, false); - - m_checks->Check(i, Enabled); - - LogManager::m_Log[i + v*100]->m_bEnable = Enabled; - LogManager::m_Log[i + v*100]->m_bShowInLog = Enabled; + 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); + LogManager::m_Log[i + j*100]->m_bEnable = Enabled; + LogManager::m_Log[i + j*100]->m_bShowInLog = Enabled; + if(j == v) m_checks->Check(i, Enabled); + } } m_bCheckDirty = true;