Changeset View
Changeset View
Standalone View
Standalone View
src/recurrencerule.cpp
Context not available. | |||||
626 | QList<KDateTime> &list) const | 626 | QList<KDateTime> &list) const | ||
---|---|---|---|---|---|
627 | { | 627 | { | ||
628 | KDateTime dt(date, time, timespec); | 628 | KDateTime dt(date, time, timespec); | ||
629 | if (dt.isValid()) { | 629 | // We should simply test dt.isValid() here, but a bug in KDateTime requires the following line: | ||
630 | if ((dt.timeSpec() == KDateTime::Spec::ClockTime() && dt.date().isValid() && dt.time().isValid()) || dt.isValid()) { | ||||
630 | if (secondOccurrence) { | 631 | if (secondOccurrence) { | ||
631 | dt.setSecondOccurrence(true); | 632 | dt.setSecondOccurrence(true); | ||
632 | } | 633 | } | ||
Context not available. |