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
KAlarm
Commits
de3cddb2
Commit
de3cddb2
authored
Feb 04, 2021
by
David Jarvie
Browse files
Replace deprecated method
parent
278448f7
Pipeline
#49768
failed with stage
in 13 minutes and 23 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kalarmapp.cpp
View file @
de3cddb2
...
...
@@ -1833,10 +1833,10 @@ int KAlarmApp::handleEvent(const EventId& id, QueuedAction action, bool findUniq
{
KADateTime
dt
(
nextDT
);
dt
.
setDateOnly
(
true
);
reschedule
=
!
event
.
is
Work
ing
Time
(
dt
);
reschedule
=
event
.
excludedBy
WorkTime
OrHoliday
(
dt
);
}
else
reschedule
=
!
event
.
is
Work
ing
Time
(
nextDT
);
reschedule
=
event
.
excludedBy
WorkTime
OrHoliday
(
nextDT
);
rescheduleWork
=
reschedule
;
if
(
reschedule
)
qCDebug
(
KALARM_LOG
)
<<
"KAlarmApp::handleEvent: Alarm"
<<
alarm
.
type
()
<<
"at"
<<
nextDT
.
qDateTime
()
<<
": not during working hours"
;
...
...
@@ -2111,10 +2111,10 @@ int KAlarmApp::rescheduleAlarm(KAEvent& event, const KAAlarm& alarm, bool update
{
KADateTime
dt
(
next_dt
);
dt
.
setDateOnly
(
true
);
next
=
!
event
.
is
Work
ing
Time
(
dt
);
next
=
event
.
excludedBy
WorkTime
OrHoliday
(
dt
);
}
else
next
=
!
event
.
is
Work
ing
Time
(
next_dt
);
next
=
event
.
excludedBy
WorkTime
OrHoliday
(
next_dt
);
}
}
while
(
next
&&
next_dt
<=
now
);
reply
=
(
!
cancelled
&&
next_dt
.
isValid
()
&&
(
next_dt
<=
now
))
?
1
:
0
;
...
...
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