[Kde-pim] Review Request 107153: Put new items from resource sync into proper childEntities collection when using InvisibleCollectionFetch
Commit Hook
null at kde.org
Wed Mar 13 13:36:15 GMT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107153/#review29124
-----------------------------------------------------------
This review has been submitted with commit 207798d0c5d308254ede4d5383406cf194ba274e by Martin Klapetek to branch KDE/4.10.
- Commit Hook
On Feb. 7, 2013, 10:23 a.m., Martin Klapetek wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/107153/
> -----------------------------------------------------------
>
> (Updated Feb. 7, 2013, 10:23 a.m.)
>
>
> Review request for KDEPIM, KDEPIM-Libraries and Stephen Kelly.
>
>
> Description
> -------
>
> When using ETM with InvisibleCollectionFetch collection fetch strategy, new added items from resource syncing ends up in wrong collection and just empty data are displayed in the view. Debugging this I discovered that the newly created items must be stored with "m_rootCollection.id()" as key instead of "collection.id()" (m_childEntities[collection.id()] is actually empty/non-existant even though the model has valid items from this collection) as the model is actually just a flat list.
>
>
> Diffs
> -----
>
> akonadi/entitytreemodel_p.cpp b1c8378
>
> Diff: http://git.reviewboard.kde.org/r/107153/diff/
>
>
> Testing
> -------
>
> Tested my SocialFeed model, which uses InvisibleCollectionFetch, this fixes showing new items in the plasmoid.
>
>
> Thanks,
>
> Martin Klapetek
>
>
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list