[Kde-pim] resource crashes using deleted attribute
David Faure
faure at kde.org
Sun Apr 12 09:18:04 BST 2015
On Sunday 12 April 2015 01:27:42 David Faure wrote:
> EntityAnnotationsAttribute *annotationsAttribute =
> mCollection.attribute<EntityAnnotationsAttribute>(
> Akonadi::Collection::AddIfMissing );
>
> mCollection.addAttribute(annotationsAttribute);
Ah! The crash only happens when the attribute was already there.
AddIfMissing takes care of adding the attribute, so I shouldn't call
addAttribute again, right?
I guess Collection could warn+return if the attribute is already in the list?
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5
_______________________________________________
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