summaryrefslogtreecommitdiff
path: root/Source/Core/Common/IniFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
-rw-r--r--Source/Core/Common/IniFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp
index b345f6c0fe..6e6749cb0d 100644
--- a/Source/Core/Common/IniFile.cpp
+++ b/Source/Core/Common/IniFile.cpp
@@ -85,7 +85,8 @@ bool IniFile::Section::Delete(std::string_view key)
return false;
values.erase(it);
- keys_order.erase(std::ranges::find(keys_order, key));
+ keys_order.erase(std::ranges::find_if(
+ keys_order, [&](std::string_view v) { return CaseInsensitiveEquals(key, v); }));
return true;
}