Skip to content
GitLab
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
7940a086
Commit
7940a086
authored
Jul 25, 2019
by
David Jarvie
Browse files
Evaluate Todo start date correctly
parent
05e31168
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/alarmtext.cpp
View file @
7940a086
...
...
@@ -163,7 +163,7 @@ void AlarmText::setTodo(const KCalCore::Todo::Ptr &todo)
d
->
mTo
=
todo
->
location
();
if
(
todo
->
hasDueDate
())
{
QDateTime
due
=
todo
->
dtDue
(
false
);
// fetch the next due date
if
(
todo
->
hasStartDate
()
&&
todo
->
dtStart
()
!=
due
)
{
if
(
todo
->
hasStartDate
()
&&
todo
->
dtStart
(
true
)
!=
due
)
{
d
->
mTime
=
todo
->
allDay
()
?
QLocale
().
toString
(
due
.
date
(),
QLocale
::
ShortFormat
)
:
QLocale
().
toString
(
due
,
QLocale
::
ShortFormat
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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