Commit 7b027e46 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛 Committed by Glen Ditchfield
Browse files

Update the Search dialog when items in the calendar change

When `CalendarView::slotModifyFinished` fires, the calendar has not been
updated, so the `calendar()->events` call in `SearchDialog::updateView`
returns stale events.  This patch connects `SearchDialog::updateView` to
the `calendarChanged` signal, which is what is done for the Event List.
parent 281e8f74
Pipeline #78772 failed with stage
in 2 minutes and 13 seconds
......@@ -686,8 +686,6 @@ void CalendarView::changeIncidenceDisplay(const Akonadi::Item &item, Akonadi::In
mDateNavigatorContainer->updateView();
}
mDialogManager->updateSearchDialog();
if (CalendarSupport::hasIncidence(item)) {
// If there is an event view visible update the display
mViewManager->currentView()->changeIncidenceDisplay(item, changeType);
......
......@@ -101,7 +101,8 @@ void KODialogManager::showSearchDialog()
{
if (!mSearchDialog) {
mSearchDialog = new SearchDialog(mMainView);
// mSearchDialog->setCalendar( mMainView->calendar() );
connect(mMainView->calendar().data(), &Akonadi::ETMCalendar::calendarChanged,
mSearchDialog, &SearchDialog::updateView);
connect(mSearchDialog, &SearchDialog::showIncidenceSignal,
mMainView, qOverload<const Akonadi::Item &>(&CalendarView::showIncidence));
connect(mSearchDialog, &SearchDialog::editIncidenceSignal,
......
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