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
PIM
Kontact
Commits
9e601ec4
Verified
Commit
9e601ec4
authored
Oct 21, 2021
by
Alexander Lohnau
💬
Browse files
kcmkontact: Assume all plugins are enabled by default
If one does not have any changed settings, all the plugins are disabled
parent
26db2686
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/kcmkontact.cpp
View file @
9e601ec4
...
...
@@ -83,7 +83,7 @@ void KcmKontact::load()
// skip disabled plugins
const
QString
pluginName
=
plugin
.
pluginId
();
if
(
!
grp
.
readEntry
(
pluginName
+
QStringLiteral
(
"Enabled"
),
fals
e
))
{
if
(
!
grp
.
readEntry
(
pluginName
+
QStringLiteral
(
"Enabled"
),
tru
e
))
{
const
QStandardItemModel
*
qsm
=
qobject_cast
<
QStandardItemModel
*>
(
mPluginCombo
->
model
());
if
(
qsm
)
{
qsm
->
item
(
mPluginCombo
->
count
()
-
1
,
0
)
->
setEnabled
(
false
);
...
...
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