Skip to content

Commit

Permalink
[nemo-qml-plugin-calendar] Show the first of N reminders. Contributes…
Browse files Browse the repository at this point in the history
… to JB#33108

Previously if multiple reminders were found, it was assumed that
none of them were valid.  This commit changes the behaviour so that
the first reminder found is assumed to be valid and shown in the
UI.
  • Loading branch information
Chris Adams committed Jan 8, 2019
1 parent 34f9d2f commit 41b2867
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/calendarutils.cpp
Expand Up @@ -97,13 +97,8 @@ int NemoCalendarUtils::getReminderSeconds(const KCalCore::Event::Ptr &event, boo
for (int ii = 0; ii < alarms.count(); ++ii) {
if (alarms.at(ii)->type() == KCalCore::Alarm::Procedure)
continue;

if (alarm) {
*hasReminder = false;
return 0;
} else {
alarm = alarms.at(ii);
}
alarm = alarms.at(ii);
break;
}

if (!alarm) {
Expand Down

0 comments on commit 41b2867

Please sign in to comment.