equal
deleted
inserted
replaced
1170 disconnect( |
1170 disconnect( |
1171 mBackAction, SIGNAL(triggered()), |
1171 mBackAction, SIGNAL(triggered()), |
1172 this, SLOT(close())); |
1172 this, SLOT(close())); |
1173 |
1173 |
1174 window->removeView(mViewer); |
1174 window->removeView(mViewer); |
1175 if (AgendaEntry::TypeTodo == mAgendaEntry.type()) { |
1175 // For To-do, if due date is in future, we retain it there. |
|
1176 // All the past incompleted to-dos will come on today. |
|
1177 if ((AgendaEntry::TypeTodo == mAgendaEntry.type()) && (mAgendaEntry.startTime().date() <= QDate::currentDate())) { |
1176 mAgendaEntry.setStartAndEndTime( |
1178 mAgendaEntry.setStartAndEndTime( |
1177 CalenDateUtils::today(), CalenDateUtils::today()); |
1179 CalenDateUtils::today(), CalenDateUtils::today()); |
1178 } |
1180 } |
1179 mOwner->viewingCompleted(mAgendaEntry.startTime().date()); |
1181 mOwner->viewingCompleted(mAgendaEntry.startTime().date()); |
1180 |
1182 |