settings: Fix purge if order differs from alphabetical order
This commit is contained in:
@@ -177,7 +177,7 @@ static bool section_purge(section_t *this, array_t *contents)
|
||||
* having any such subsections) are not removed */
|
||||
for (i = array_count(this->sections_order) - 1; i >= 0; i--)
|
||||
{
|
||||
array_get(this->sections, i, ¤t);
|
||||
array_get(this->sections_order, i, ¤t);
|
||||
if (section_purge(current, contents))
|
||||
{
|
||||
array_remove(this->sections_order, i, NULL);
|
||||
|
||||
Reference in New Issue
Block a user