Commit 7940a086 authored by David Jarvie's avatar David Jarvie
Browse files

Evaluate Todo start date correctly

parent 05e31168
...@@ -163,7 +163,7 @@ void AlarmText::setTodo(const KCalCore::Todo::Ptr &todo) ...@@ -163,7 +163,7 @@ void AlarmText::setTodo(const KCalCore::Todo::Ptr &todo)
d->mTo = todo->location(); d->mTo = todo->location();
if (todo->hasDueDate()) { if (todo->hasDueDate()) {
QDateTime due = todo->dtDue(false); // fetch the next due date 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) d->mTime = todo->allDay() ? QLocale().toString(due.date(), QLocale::ShortFormat)
: QLocale().toString(due, QLocale::ShortFormat); : QLocale().toString(due, QLocale::ShortFormat);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment