Commit fc8da3c4 authored by David Jarvie's avatar David Jarvie

Fix deletion of alarms (non-Akonadi)

parent 2a6d92d0
......@@ -844,13 +844,13 @@ void MainWindow::slotDelete(bool force)
undos.append(events[i++], c);
}
#else
for (int i = 0, end = ids.count(); i < end; ++i)
for (int i = 0, e = 0, end = ids.count(); i < end; ++i)
{
AlarmResource* r = resources->resourceForEvent(ids[i]);
if (!r)
events.remove(i);
events.remove(e);
else
undos.append(*events[i], r);
undos.append(*events[e++], r);
}
#endif
......
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