clamp verbosity setting
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2703 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f5e643bf34
commit
2c13aa0394
|
@ -166,6 +166,8 @@ void CLogWindow::LoadSettings()
|
||||||
ini.Get("LogWindow", "h", &h, GetSize().GetHeight());
|
ini.Get("LogWindow", "h", &h, GetSize().GetHeight());
|
||||||
SetSize(x, y, w, h);
|
SetSize(x, y, w, h);
|
||||||
ini.Get("Options", "Verbosity", &verbosity, 0);
|
ini.Get("Options", "Verbosity", &verbosity, 0);
|
||||||
|
if (verbosity < 1) verbosity = 1;
|
||||||
|
if (verbosity > DEBUG_LEVEL) verbosity = DEBUG_LEVEL;
|
||||||
m_verbosity->SetSelection(verbosity - 1);
|
m_verbosity->SetSelection(verbosity - 1);
|
||||||
ini.Get("Options", "WriteToFile", &m_writeFile, true);
|
ini.Get("Options", "WriteToFile", &m_writeFile, true);
|
||||||
m_writeFileCB->SetValue(m_writeFile);
|
m_writeFileCB->SetValue(m_writeFile);
|
||||||
|
|
Loading…
Reference in New Issue