Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[nemo-qml-plugin-calendar] Don't change recurrence rules on RecurCust…
…om. Contributes to JB#50135
  • Loading branch information
dcaliste committed Jun 4, 2020
1 parent 04e7b64 commit 8bdb77b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/calendarworker.cpp
Expand Up @@ -342,11 +342,6 @@ bool CalendarWorker::setRecurrence(KCalCore::Event::Ptr &event, CalendarEvent::R

CalendarEvent::Recur oldRecur = CalendarUtils::convertRecurrence(event);

if (recur == CalendarEvent::RecurCustom) {
qWarning() << "Cannot assign RecurCustom, will assing RecurOnce";
recur = CalendarEvent::RecurOnce;
}

if (recur == CalendarEvent::RecurOnce)
event->recurrence()->clear();

Expand All @@ -370,6 +365,7 @@ bool CalendarWorker::setRecurrence(KCalCore::Event::Ptr &event, CalendarEvent::R
event->recurrence()->setYearly(1);
break;
case CalendarEvent::RecurCustom:
// Unable to handle the recurrence rules, keep the existing ones.
break;
}
return true;
Expand Down

0 comments on commit 8bdb77b

Please sign in to comment.