[Kde-pim] Akonadi collection attribute not being fetched correctly

David Jarvie djarvie at kde.org
Thu Sep 9 23:48:56 BST 2010


Sometimes calling Collection::attribute<T>() does not return the correct value of the attribute. I find that sometimes when an attribute is updated, and a CollectionModifyJob is then used to update the value in the Akonadi database, the database is updated successfully (as shown in AkonadiConsole) and the correct, new, value of the attribute is returned if it is accessed in the CollectionModifyJob result slot. But the next time the attribute is accessed in a different part of the program, the old value of the attribute is returned.

Is some special action needed to ensure that a specific Collection instance returns the up to date value of one of its Attributes?

-- 
David Jarvie.
KDE developer.
KAlarm author -- http://www.astrojar.org.uk/kalarm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100909/20d15d25/attachment.sig>
-------------- 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