Skip to content
Commit a53e22c3 authored by Igor Poboiko's avatar Igor Poboiko
Browse files

[IncidenceTreeModel] Update UID if it was changed

Summary:
If one creates a Todo inside KOrganizer, it sets some default generated UID.
Such UID can be changed by the resource afterwards. The model should handle this case.

This patch adds a simple check: if the uid has changed inside `onDataChange, then just update the hashes.

Test Plan:
1) Add a Todo to Google Tasklist
2) Add a subtodo instantly (without reloading the view)
3) (without patch) Subtodo is added at the top level (parent was not recognized)
4) (with patch) Subtodo is added below the parent todo

Reviewers: dvratil

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D28436
parent 68507724
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