From 07a1cb4baaf544e0e594040bbe8e5872ccb34c0f Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 18 Oct 2002 03:12:54 +0000 Subject: Fix the behaviour of isOverDue. We currently check if the Record got a DueDate and then do some calculations. I added a check to see if the item isCompleted. If it is completed it can not be overdue Stefan: Only one item left which is overdue ;) --- (limited to 'libopie2/opiepim') diff --git a/libopie2/opiepim/otodo.cpp b/libopie2/opiepim/otodo.cpp index 6dd4c0e..765d5a9 100644 --- a/libopie2/opiepim/otodo.cpp +++ b/libopie2/opiepim/otodo.cpp @@ -187,7 +187,7 @@ void OTodo::setAlarmDateTime( const QDateTime& alarm ) } bool OTodo::isOverdue( ) { - if( data->hasDate ) + if( data->hasDate && !data->isCompleted) return QDate::currentDate() > data->date; return false; } -- cgit v0.9.0.2