Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Kiten
Commits
59979083
Commit
59979083
authored
Jan 18, 2021
by
Frédéric Brière
Browse files
Fix addItem() group name in ConfigDictionarySelector::updateWidgets()
BUG: 418108
parent
371441d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/configdictionaryselector.cpp
View file @
59979083
...
...
@@ -31,7 +31,8 @@ void ConfigDictionarySelector::updateWidgets()
{
QStringList
names
;
_config
->
setCurrentGroup
(
"dicts_"
+
_dictName
);
QString
groupName
=
"dicts_"
+
_dictName
;
_config
->
setCurrentGroup
(
groupName
);
KConfigSkeletonItem
*
item
=
_config
->
findItem
(
_dictName
+
"__NAMES"
);
if
(
item
!=
nullptr
)
{
...
...
@@ -43,7 +44,7 @@ void ConfigDictionarySelector::updateWidgets()
QString
name
=
_dictName
+
'_'
+
it
;
if
(
!
_config
->
findItem
(
name
)
)
{
_config
->
addItem
(
new
KConfigSkeleton
::
ItemString
(
_dict
Name
,
it
,
*
new
QString
()
),
name
);
_config
->
addItem
(
new
KConfigSkeleton
::
ItemString
(
group
Name
,
it
,
*
new
QString
()
),
name
);
//Don't touch the *new QString()... that's a reference for a reason... stupid KDE
}
}
...
...
Frédéric Brière
@fbriere
mentioned in commit
47c688fa
·
Jan 19, 2021
mentioned in commit
47c688fa
mentioned in commit 47c688fa73badf22248580b5e9d3ef7e10493216
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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