Commit 32f4472a authored by David Redondo's avatar David Redondo 🏎
Browse files

Compare against coponent id when importing

We export the id not the displayName
BUG: 427188

(cherry picked from commit 0767688c)
parent de8eaaa3
......@@ -207,7 +207,7 @@ void GlobalAccelModel::importConfig(const KConfigBase &config)
{
for (const auto componentGroupName : config.groupList()) {
auto component = std::find_if(m_components.begin(), m_components.end(), [&] (const Component &c) {
return c.displayName == componentGroupName;
return c.id == componentGroupName;
});
if (component == m_components.end()) {
qCWarning(KCMKEYS) << "Ignoring unknown component" << componentGroupName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment