Commit 8b4378f2 authored by Igor Poboiko's avatar Igor Poboiko
Browse files

Merge branch 'release/20.04'

parents 42c2247d a53e22c3
......@@ -202,6 +202,15 @@ void IncidenceTreeModel::Private::onDataChanged(const QModelIndex &begin, const
Q_ASSERT(false);
return;
}
// An UID could have changed, update hashes!
if (node->uid != incidence->instanceIdentifier()) {
qCDebug(CALENDARVIEW_LOG) << "Incidence UID has changed" << node->uid << incidence->instanceIdentifier();
m_itemByUid.remove(node->uid);
m_uidMap.remove(node->uid);
node->uid = incidence->instanceIdentifier();
m_uidMap.insert(node->uid, node);
}
m_itemByUid.insert(incidence->instanceIdentifier(), item);
Node::Ptr newParentNode;
......
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