[Kde-pim] [PATCH] Akonadi::ItemModel doesn't update its item cache

Dmitry Ivanov vonami at gmail.com
Fri Jun 20 21:27:46 BST 2008


Hello,

When an item is changed in the database ItemModel receives notification and
emits dataChanged() but it doesn't update the item in its item cache. So 
ItemModel's clients get old values when request items via itemForIndex().

The attached patch fixed this bug. IIUC, qHash() for Akonadi::Item is computed 
from id there is no need to update 'itemHash', only the value in ItemContainer 
from 'items'.

-- 
Dmitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: akonadi-itemmodel-fix.diff
Type: text/x-patch
Size: 383 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080621/b2a7806a/attachment.bin>
-------------- next part --------------
_______________________________________________
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