Commit 62caadaf authored by David Jarvie's avatar David Jarvie
Browse files

Fix error on redo of an active alarm deletion

parent 7e6c9bf2
......@@ -1013,6 +1013,7 @@ UndoItem* UndoDelete::restore()
{
qCDebug(KALARM_LOG) << "UndoDelete::restore:" << mEvent->id();
// Restore the original event
CalEvent::Type saveType = calendar();
switch (calendar())
{
case CalEvent::ACTIVE:
......@@ -1089,7 +1090,7 @@ UndoItem* UndoDelete::restore()
}
// Create a redo item to delete the alarm again
mEvent->setCategory(CalEvent::ACTIVE);
mEvent->setCategory(saveType);
return createRedo(*mEvent, mResource);
}
......
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