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

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 // 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 bool IniFile::GetLines(const std::string& sectionName, std::vector<std::string>* lines, const bool remove_comments) const
{ {
lines->clear();
const Section* section = GetSection(sectionName); const Section* section = GetSection(sectionName);
if (!section) if (!section)
return false; return false;
lines->clear();
for (std::string line : section->lines) for (std::string line : section->lines)
{ {
line = StripSpaces(line); line = StripSpaces(line);