Code

Improve 'dirty' editor handling