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 10fb4e6d authored by Allen Winter's avatar Allen Winter

specialdates/sdsummarywidget.cpp - Don't print birthdays beyond the days-ahead limit

Differential Revision: https://phabricator.kde.org/D7702
BUG: 384284
FIXED-IN: 17.12
parent 37846896
......@@ -241,12 +241,15 @@ void SDSummaryWidget::slotBirthdayJobFinished(KJob *job)
entry.type = IncidenceTypeContact;
entry.category = CategoryBirthday;
dateDiff(birthday, entry.daysTo, entry.yearsOld);
entry.date = birthday;
entry.addressee = addressee;
entry.item = item;
entry.span = 1;
mDates.append(entry);
if (entry.daysTo < mDaysAhead) {
// We need to check the days ahead here because we don't
// filter out Contact Birthdays by mDaysAhead in createLabels().
entry.date = birthday;
entry.addressee = addressee;
entry.item = item;
entry.span = 1;
mDates.append(entry);
}
}
}
}
......
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