POP-18 #comment Clear the undoManager history whenever the media changes in order to prevent the history from carrying over to any different projects in the session.