From 6d066b0ed3fd7fbedce84616a8fa279eec480f13 Mon Sep 17 00:00:00 2001 From: eilers Date: Fri, 21 Mar 2003 12:26:28 +0000 Subject: Fixing small bug: If we search a birthday from today to today, it returned every contact .. --- (limited to 'libopie/pim') diff --git a/libopie/pim/ocontactaccessbackend_xml.cpp b/libopie/pim/ocontactaccessbackend_xml.cpp index 4abf4d9..9fe3d1e 100644 --- a/libopie/pim/ocontactaccessbackend_xml.cpp +++ b/libopie/pim/ocontactaccessbackend_xml.cpp @@ -17,6 +17,10 @@ * ===================================================================== * History: * $Log$ + * Revision 1.3 2003/03/21 12:26:28 eilers + * Fixing small bug: If we search a birthday from today to today, it returned + * every contact .. + * * Revision 1.2 2003/03/21 10:33:09 eilers * Merged speed optimized xml backend for contacts to main. * Added QDateTime to querybyexample. For instance, it is now possible to get @@ -325,7 +329,7 @@ QArray OContactAccessBackend_XML::queryByExample ( const OContact &query, i checkDate->toString().latin1(), current.toString().latin1(), queryDate->toString().latin1() ); - if ( current.daysTo( *queryDate ) > 0 ){ + if ( current.daysTo( *queryDate ) >= 0 ){ if ( !( ( *checkDate >= current ) && ( *checkDate <= *queryDate ) ) ){ allcorrect = false; -- cgit v0.9.0.2