Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5d914a6f authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Adapt to KCalCore recurrence API changes

parent 43a22781
......@@ -26,6 +26,8 @@
#include <KLocalizedString>
#include <QLocale>
#include <KCalCore/Utils>
using namespace IncidenceEditorNG;
enum {
......@@ -434,8 +436,8 @@ bool IncidenceRecurrence::isValid() const
= incidence->dateTime(KCalCore::Incidence::RoleRecurrenceStart);
if (referenceDate.isValid()) {
if (!(incidence->recurrence()->recursOn(referenceDate.date(), referenceDate.timeSpec())
|| incidence->recurrence()->getNextDateTime(referenceDate).isValid())) {
if (!(incidence->recurrence()->recursOn(referenceDate.date(), KCalCore::specToZone(referenceDate.timeSpec()))
|| incidence->recurrence()->getNextDateTime(KCalCore::k2q(referenceDate)).isValid())) {
mLastErrorString = i18n("A recurring event or to-do must occur at least once. "
"Adjust the recurring parameters.");
qCDebug(INCIDENCEEDITOR_LOG) << mLastErrorString;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment