Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
0767688c
Commit
0767688c
authored
Oct 05, 2020
by
David Redondo
🏎
Browse files
Compare against coponent id when importing
We export the id not the displayName
BUG: 427188
parent
e4291c47
Changes
1
Hide whitespace changes
Inline
Side-by-side
kcms/keys/globalaccelmodel.cpp
View file @
0767688c
...
...
@@ -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
.
d
isplayName
==
componentGroupName
;
return
c
.
i
d
==
componentGroupName
;
});
if
(
component
==
m_components
.
end
())
{
qCWarning
(
KCMKEYS
)
<<
"Ignoring unknown component"
<<
componentGroupName
;
...
...
David Redondo
🏎
@davidre
mentioned in commit
32f4472a
·
Oct 05, 2020
mentioned in commit
32f4472a
mentioned in commit 32f4472a37c4efded4e505a7d8737a93634a3a36
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment