Merge pull request #2508 from comex/fix-gecko-codes

Fix bug where Gecko codes would be "enabled by default"
This commit is contained in:
flacs 2015-06-03 01:13:43 +02:00
commit 00cbc7c7c7
1 changed files with 2 additions and 1 deletions

View File

@ -262,11 +262,12 @@ bool IniFile::GetKeys(const std::string& sectionName, std::vector<std::string>*
// Return a list of all lines in a section
bool IniFile::GetLines(const std::string& sectionName, std::vector<std::string>* lines, const bool remove_comments) const
{
lines->clear();
const Section* section = GetSection(sectionName);
if (!section)
return false;
lines->clear();
for (std::string line : section->lines)
{
line = StripSpaces(line);