Changeset View
Changeset View
Standalone View
Standalone View
src/pimcommonakonadi/acl/collectionaclpage.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Line(s) | |||||
83 | } | 83 | } | ||
84 | 84 | | |||
85 | void CollectionAclPage::save(Akonadi::Collection &collection) | 85 | void CollectionAclPage::save(Akonadi::Collection &collection) | ||
86 | { | 86 | { | ||
87 | d->mCollectionAclWidget->aclManager()->save(d->mCollectionAclWidget->recursive()); | 87 | d->mCollectionAclWidget->aclManager()->save(d->mCollectionAclWidget->recursive()); | ||
88 | 88 | | |||
89 | // The collection dialog expects the changed collection to run | 89 | // The collection dialog expects the changed collection to run | ||
90 | // its own ItemModifyJob, so make him happy... | 90 | // its own ItemModifyJob, so make him happy... | ||
91 | PimCommon::ImapAclAttribute *attribute = d->mCollectionAclWidget->aclManager()->collection().attribute<PimCommon::ImapAclAttribute>(); | 91 | const auto origCol = d->mCollectionAclWidget->aclManager()->collection(); | ||
92 | collection.addAttribute(attribute->clone()); | 92 | collection.addAttribute(origCol.attribute<PimCommon::ImapAclAttribute>()->clone()); | ||
93 | } | 93 | } |