From 6b6fd6d8d782362197222243b589063f9fc69f92 Mon Sep 17 00:00:00 2001 From: David Llewellyn-Jones Date: Mon, 25 Jan 2021 17:20:07 +0000 Subject: [PATCH] [nemo-qml-plugin-calendar] Emit signal when syncFailure changes. Contributes to JB#52608 Emits the syncFailureChanged() signal when the sync failure status changes, which allows the UI to update automatically to indicate the failure status. --- src/calendarmanager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calendarmanager.cpp b/src/calendarmanager.cpp index 2e9e8ad9..b6ed6090 100644 --- a/src/calendarmanager.cpp +++ b/src/calendarmanager.cpp @@ -823,4 +823,7 @@ void CalendarManager::sendEventChangeSignals(const CalendarData::Event &newEvent if (newEvent.ownerStatus != oldEvent.ownerStatus) emit eventObject->ownerStatusChanged(); + + if (newEvent.syncFailure != oldEvent.syncFailure) + emit eventObject->syncFailureChanged(); }