-rw-r--r-- | libkcal/incidence.cpp | 8 | ||||
-rw-r--r-- | libkcal/incidencebase.cpp | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/libkcal/incidence.cpp b/libkcal/incidence.cpp index 56c9801..55ac6d4 100644 --- a/libkcal/incidence.cpp +++ b/libkcal/incidence.cpp @@ -592,4 +592,8 @@ QDateTime Incidence::getNextOccurence( const QDateTime& dt, bool* ok ) const incidenceStart = dtStart(); - - } + } + if ( type() =="Todo" ) { + if ( ((Todo*)this)->hasDueDate() ) + incidenceStart = ((Todo*)this)->dtDue(); + + } } diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index 64a343c..b36dc1a 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp @@ -273,3 +273,3 @@ Attendee *IncidenceBase::attendeeByMail(const QString &email) while (qli) { - if (qli.current()->email() == email) + if (qli.current()->email().lower() == email.lower()) return qli.current(); @@ -291,3 +291,3 @@ Attendee *IncidenceBase::attendeeByMails(const QStringList &emails, const QStrin for ( QStringList::Iterator it = mails.begin(); it != mails.end(); ++it ) { - if (qli.current()->email() == *it) + if (qli.current()->email().lower() == (*it).lower()) return qli.current(); |