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
KDE PIM Runtime
Commits
775ba9e9
Commit
775ba9e9
authored
Oct 18, 2021
by
Laurent Montel
😁
Browse files
Use no deprecated method
parent
cdf1b48d
Pipeline
#89518
failed with stage
in 25 minutes and 36 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
resources/birthdays/birthdaysresource.cpp
View file @
775ba9e9
...
...
@@ -133,15 +133,15 @@ void BirthdaysResource::contactRetrieved(KJob *job)
}
auto
contact
=
contactItem
.
payload
<
KContacts
::
Addressee
>
();
KCalendarCore
::
Incidence
::
Ptr
ev
;
if
(
currentItem
(
).
remoteId
().
startsWith
(
QLatin1Char
(
'b'
)))
{
if
(
currentItem
s
().
at
(
0
).
remoteId
().
startsWith
(
QLatin1Char
(
'b'
)))
{
ev
=
createBirthday
(
contact
,
contactItem
.
id
());
}
else
if
(
currentItem
(
).
remoteId
().
startsWith
(
QLatin1Char
(
'a'
)))
{
}
else
if
(
currentItem
s
().
at
(
0
).
remoteId
().
startsWith
(
QLatin1Char
(
'a'
)))
{
ev
=
createAnniversary
(
contact
,
contactItem
.
id
());
}
if
(
!
ev
)
{
cancelTask
();
}
else
{
Item
i
(
currentItem
(
));
Item
i
(
currentItem
s
().
at
(
0
));
i
.
setPayload
<
Incidence
::
Ptr
>
(
ev
);
itemRetrieved
(
i
);
}
...
...
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