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 4e236f9f authored by Allen Winter's avatar Allen Winter

korgac/koalarmclient.cpp - ignore ancient reminders (10 days old)

mostly this affects the first startup. probably 10 days is even too old
parent 7b3f8e29
......@@ -237,7 +237,10 @@ void KOAlarmClient::createReminder(const Akonadi::ETMCalendar::Ptr &calendar,
if (!CalendarSupport::hasIncidence(aitem)) {
return;
}
if (remindAtDate.addDays(10) < mLastChecked) {
// ignore reminders more than 10 days old
return;
}
if (!mDialog) {
mDialog = new AlarmDialog(calendar);
connect(this, &KOAlarmClient::saveAllSignal, mDialog, &AlarmDialog::slotSave);
......@@ -341,4 +344,3 @@ void KOAlarmClient::show()
}
}
}
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