bug 797845 - Warn user of unsaved document changes