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
8a0bb98e
Commit
8a0bb98e
authored
Nov 26, 2014
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor optimization
parent
e5563d54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
korganizer/koeventpopupmenu.cpp
korganizer/koeventpopupmenu.cpp
+6
-3
No files found.
korganizer/koeventpopupmenu.cpp
View file @
8a0bb98e
...
@@ -123,14 +123,17 @@ void KOEventPopupMenu::showIncidencePopup( const Akonadi::Item &item, const QDat
...
@@ -123,14 +123,17 @@ void KOEventPopupMenu::showIncidencePopup( const Akonadi::Item &item, const QDat
// Enable/Disabled menu items only valid for editable events.
// Enable/Disabled menu items only valid for editable events.
QList
<
QAction
*>::
Iterator
it
;
QList
<
QAction
*>::
Iterator
it
;
for
(
it
=
mEditOnlyItems
.
begin
();
it
!=
mEditOnlyItems
.
end
();
++
it
)
{
QList
<
QAction
*>::
Iterator
end
(
mEditOnlyItems
.
end
());
for
(
it
=
mEditOnlyItems
.
begin
();
it
!=
end
;
++
it
)
{
(
*
it
)
->
setEnabled
(
hasChangeRights
);
(
*
it
)
->
setEnabled
(
hasChangeRights
);
}
}
mToggleReminder
->
setVisible
(
(
incidence
->
type
()
!=
KCalCore
::
Incidence
::
TypeJournal
)
);
mToggleReminder
->
setVisible
(
(
incidence
->
type
()
!=
KCalCore
::
Incidence
::
TypeJournal
)
);
for
(
it
=
mRecurrenceItems
.
begin
();
it
!=
mRecurrenceItems
.
end
();
++
it
)
{
end
=
mRecurrenceItems
.
end
();
for
(
it
=
mRecurrenceItems
.
begin
();
it
!=
end
;
++
it
)
{
(
*
it
)
->
setVisible
(
incidence
->
recurs
()
);
(
*
it
)
->
setVisible
(
incidence
->
recurs
()
);
}
}
for
(
it
=
mTodoOnlyItems
.
begin
();
it
!=
mTodoOnlyItems
.
end
();
++
it
)
{
end
=
mTodoOnlyItems
.
end
();
for
(
it
=
mTodoOnlyItems
.
begin
();
it
!=
end
;
++
it
)
{
(
*
it
)
->
setVisible
(
incidence
->
type
()
==
KCalCore
::
Incidence
::
TypeTodo
);
(
*
it
)
->
setVisible
(
incidence
->
type
()
==
KCalCore
::
Incidence
::
TypeTodo
);
(
*
it
)
->
setEnabled
(
hasChangeRights
);
(
*
it
)
->
setEnabled
(
hasChangeRights
);
}
}
...
...
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