Commit ef3e58f2 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Keep dtStart valid when moving a todo

The Todo view lets the user "move" a todo by changing its due date-time.
If the todo has a start date-time, it allowed dtDue to move to a time
earlier than dtStart, which is disallowed by RFC 5545.  This patch
adjusts dtStart if necessary to make the todo valid.
parent 91ea212a
Pipeline #170113 passed with stage
in 55 seconds
......@@ -911,6 +911,9 @@ void TodoView::setNewDate(QDate date)
if (todo->hasStartDate() && dt < todo->dtStart()) {
changer()->modifyIncidence(todoItem, oldTodo, this);
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