Read the config file before enabling logs.

This commit is contained in:
Rachel Bryk
2014-09-03 19:48:54 -04:00
parent 6e2b873ec1
commit 22d2c7d053
2 changed files with 15 additions and 6 deletions

View File

@ -103,7 +103,7 @@ void CLogWindow::CreateGUIControls()
for (int i = 0; i < LogTypes::NUMBER_OF_LOGS; ++i)
{
bool enable;
logs->Get(m_LogManager->GetShortName((LogTypes::LOG_TYPE)i), &enable, true);
logs->Get(m_LogManager->GetShortName((LogTypes::LOG_TYPE)i), &enable, false);
if (m_writeWindow && enable)
m_LogManager->AddListener((LogTypes::LOG_TYPE)i, this);