Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Unmaintained
KDE Pim
Commits
7b120112
Commit
7b120112
authored
Dec 30, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor optimization
parent
0883ff58
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
korganizer/koprefsdialog.cpp
korganizer/koprefsdialog.cpp
+3
-2
No files found.
korganizer/koprefsdialog.cpp
View file @
7b120112
...
...
@@ -1281,7 +1281,8 @@ void KOPrefsDialogPlugins::usrReadConfig()
i18nc
(
"@title:group"
,
"Other Plugins"
)
)
);
KService
::
List
::
ConstIterator
it
;
for
(
it
=
plugins
.
constBegin
();
it
!=
plugins
.
constEnd
();
++
it
)
{
KService
::
List
::
ConstIterator
end
(
plugins
.
constEnd
());
for
(
it
=
plugins
.
constBegin
();
it
!=
end
;
++
it
)
{
QTreeWidgetItem
*
item
=
0
;
if
(
(
*
it
)
->
hasServiceType
(
EventViews
::
CalendarDecoration
::
Decoration
::
serviceType
()
)
)
{
item
=
new
PluginItem
(
decorations
,
*
it
);
...
...
@@ -1312,7 +1313,7 @@ void KOPrefsDialogPlugins::usrWriteConfig()
for
(
int
i
=
0
;
i
<
mTreeWidget
->
topLevelItemCount
();
++
i
)
{
QTreeWidgetItem
*
serviceTypeGroup
=
mTreeWidget
->
topLevelItem
(
i
);
for
(
int
j
=
0
;
j
<
serviceTypeGroup
->
childCount
();
j
++
)
{
for
(
int
j
=
0
;
j
<
serviceTypeGroup
->
childCount
();
++
j
)
{
PluginItem
*
item
=
static_cast
<
PluginItem
*>
(
serviceTypeGroup
->
child
(
j
)
);
if
(
item
->
checkState
(
0
)
==
Qt
::
Checked
)
{
selectedPlugins
.
append
(
item
->
service
()
->
desktopEntryName
()
);
...
...
Write
Preview
Markdown
is supported
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