Commit 94f722c1 authored by Pekka Vuorela's avatar Pekka Vuorela

[nemo-qml-plugin-calendar] Always update expiryDate and creationDate on event...

[nemo-qml-plugin-calendar] Always update expiryDate and creationDate on event results. Contributes to JB#31152

Without events happening, expiryDate was left being undefined.
parent 1bc1791e
......@@ -271,8 +271,7 @@ void NemoCalendarEventsModel::getEventsResult(const QString &transactionId, cons
// events it should be there.
trackMkcal();
if ((mTransactionId != transactionId)
|| (mEventDataList.isEmpty() && eventDataList.isEmpty()))
if (mTransactionId != transactionId)
return;
int oldcount = mEventDataList.count();
......@@ -325,8 +324,11 @@ void NemoCalendarEventsModel::getEventsResult(const QString &transactionId, cons
expiryDate.setTime(QTime(0,0,0,1));
}
}
mExpiryDate = expiryDate;
emit expiryDateChanged();
if (mExpiryDate != expiryDate) {
mExpiryDate = expiryDate;
emit expiryDateChanged();
}
endResetModel();
if (count() != oldcount) {
......
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