Commit 8d26d5be authored by David Jarvie's avatar David Jarvie

Fix error saving changed alarms when closing Edit Alarm dialogue

Forward port of ae66e32fb194e01e06521c78e9c72d772d291261 (KDE/4.8)
parent a8c00772
......@@ -1284,7 +1284,7 @@ KAEvent AkonadiModel::event(const Item& item, const QModelIndex& index, Collecti
if (e.isValid())
{
Collection c = data(index, ParentCollectionRole).value<Collection>();
Collection c = data(ix, ParentCollectionRole).value<Collection>();
// Set collection ID using a const method, to avoid unnecessary copying of KAEvent
e.setCollectionId_const(c.id());
if (collection)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment