Commit 5738c83f authored by Glen Ditchfield's avatar Glen Ditchfield 🐛 Committed by Glen Ditchfield

Recognize selection of different dates of a recurring incidence

If the Item Viewer is visible in the sidebar and the Agenda or Month
view shows more than one occurrence of an incidence, and the user
selects several of them in turn, the Item Viewer does not update after
the first one, because CalendarView does not check whether the
selected date has changed.
parent 249f5e60
Pipeline #46695 passed with stage
in 13 minutes and 42 seconds
......@@ -1868,12 +1868,12 @@ void CalendarView::processTodoListSelection(const Akonadi::Item &item, const QDa
void CalendarView::processIncidenceSelection(const Akonadi::Item &item, const QDate &date)
KCalendarCore::Incidence::Ptr incidence = CalendarSupport::incidence(item);
if (item != mSelectedIncidence) {
if (item != mSelectedIncidence || date != mSaveDate) {
// This signal also must be emitted if incidence is 0
Q_EMIT incidenceSelected(item, date);
KCalendarCore::Incidence::Ptr incidence = CalendarSupport::incidence(item);
if (!incidence) {
mSelectedIncidence = item;
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