Don't close undo events by default in changeGeneration

Closes #2059