calendarui/agendaeventviewer/src/agendaeventview.cpp
changeset 81 ce92091cbd61
parent 70 a5ed90760192
child 83 5aadd1120515
--- a/calendarui/agendaeventviewer/src/agendaeventview.cpp	Mon Sep 20 12:44:39 2010 +0530
+++ b/calendarui/agendaeventviewer/src/agendaeventview.cpp	Tue Oct 05 13:57:00 2010 +0530
@@ -1172,7 +1172,9 @@
 			this, SLOT(close()));
 
 	window->removeView(mViewer);
-	if (AgendaEntry::TypeTodo == mAgendaEntry.type()) {
+	// For To-do, if due date is in future, we retain it there. 
+	// All the past incompleted to-dos will come on today.
+	if ((AgendaEntry::TypeTodo == mAgendaEntry.type()) && (mAgendaEntry.startTime().date() <= QDate::currentDate())) {
 	    mAgendaEntry.setStartAndEndTime(
 	            CalenDateUtils::today(), CalenDateUtils::today());
 	}